]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: use "shard" for local variable
authorEric Wong <e@80x24.org>
Fri, 14 Jun 2019 18:18:06 +0000 (18:18 +0000)
committerEric Wong <e@80x24.org>
Fri, 14 Jun 2019 21:56:41 +0000 (21:56 +0000)
Another small step towards terminology consistency with Xapian.

lib/PublicInbox/Search.pm

index 45431ecc4819bdc0279231d0825b6f7f5a193833..60fc861ab63da8c2b07d612c5a9ca0d6160630fe 100644 (file)
@@ -143,15 +143,15 @@ sub _xdb ($) {
        my ($xdb, $slow_phrase);
        my $qpf = \($self->{qp_flags} ||= $QP_FLAGS);
        if ($self->{version} >= 2) {
-               foreach my $part (<$dir/*>) {
-                       -d $part && $part =~ m!/[0-9]+\z! or next;
-                       my $sub = Search::Xapian::Database->new($part);
+               foreach my $shard (<$dir/*>) {
+                       -d $shard && $shard =~ m!/[0-9]+\z! or next;
+                       my $sub = Search::Xapian::Database->new($shard);
                        if ($xdb) {
                                $xdb->add_database($sub);
                        } else {
                                $xdb = $sub;
                        }
-                       $slow_phrase ||= -f "$part/iamchert";
+                       $slow_phrase ||= -f "$shard/iamchert";
                }
        } else {
                $slow_phrase = -f "$dir/iamchert";