From dfbe27bb5533ef391b214692f25e2823b20064ac Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 24 Jul 2020 05:55:54 +0000 Subject: use consistent {ibx} field for writable code paths This is a step which makes our use of abbreviations more consistent when referring to PublicInbox::Inbox objects. We'll also be reducing the number of redundant fields in SearchIdx and V2Writable code paths to make the object graph easier-to-follow. --- lib/PublicInbox/SearchIdxShard.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/SearchIdxShard.pm') diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm index 54426881..fd34e487 100644 --- a/lib/PublicInbox/SearchIdxShard.pm +++ b/lib/PublicInbox/SearchIdxShard.pm @@ -11,14 +11,14 @@ use IO::Handle (); # autoflush use PublicInbox::Eml; sub new { - my ($class, $v2writable, $shard) = @_; - my $ibx = $v2writable->{-inbox}; + my ($class, $v2w, $shard) = @_; + my $ibx = $v2w->{ibx}; my $self = $class->SUPER::new($ibx, 1, $shard); # create the DB before forking: $self->_xdb_acquire; $self->set_indexlevel; $self->_xdb_release; - $self->spawn_worker($v2writable, $shard) if $v2writable->{parallel}; + $self->spawn_worker($v2w, $shard) if $v2w->{parallel}; $self; } -- cgit v1.2.3-24-ge0c7