]> Sergey Matveev's repositories - public-inbox.git/commitdiff
inboxwritable: s/partitions/shards/ in local var
authorEric Wong <e@80x24.org>
Fri, 14 Jun 2019 17:31:28 +0000 (17:31 +0000)
committerEric Wong <e@80x24.org>
Fri, 14 Jun 2019 21:56:40 +0000 (21:56 +0000)
More work towards being consistent with Xapian's own terminology

lib/PublicInbox/InboxWritable.pm

index 116f423b74e6f4c5659a756cae7279dbc500b4c2..f00141d286e42a62e1f7f3d00901ea72d5fcf4c3 100644 (file)
@@ -31,7 +31,7 @@ sub new {
 }
 
 sub init_inbox {
-       my ($self, $partitions, $skip_epoch, $skip_artnum) = @_;
+       my ($self, $shards, $skip_epoch, $skip_artnum) = @_;
        # TODO: honor skip_artnum
        my $v = $self->{version} || 1;
        if ($v == 1) {
@@ -39,7 +39,7 @@ sub init_inbox {
                PublicInbox::Import::init_bare($dir);
        } else {
                my $v2w = importer($self);
-               $v2w->init_inbox($partitions, $skip_epoch, $skip_artnum);
+               $v2w->init_inbox($shards, $skip_epoch, $skip_artnum);
        }
 }