diff options
author | Eric Wong <e@yhbt.net> | 2020-07-24 05:55:54 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-25 20:48:18 +0000 |
commit | dfbe27bb5533ef391b214692f25e2823b20064ac (patch) | |
tree | b90f629cfd960cac06c3143435fb08fd1f64f6fc /lib/PublicInbox/SearchIdxShard.pm | |
parent | 91a9eaab69a1984b10a72b4321e1d890fddd2ba0 (diff) | |
download | public-inbox-dfbe27bb5533ef391b214692f25e2823b20064ac.tar.gz |
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.
Diffstat (limited to 'lib/PublicInbox/SearchIdxShard.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdxShard.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |