about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 17:42:57 +0000
committerEric Wong <e@80x24.org>2019-06-14 21:56:40 +0000
commit097cca4c583a3fe51945406041d1d88c864689a5 (patch)
treef744148fa87ba051b583989b9b67baccedc1818d /lib/PublicInbox/Search.pm
parent3f5370d63630701d0f62f57c15e08d566c35db42 (diff)
downloadpublic-inbox-097cca4c583a3fe51945406041d1d88c864689a5.tar.gz
search*: rename {partition} => {shard}
Another step towards keeping our internal data structures
consistent with Xapian naming.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 098c97cd..45431ecc 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -131,9 +131,9 @@ sub xdir ($;$) {
                 my $dir = "$self->{mainrepo}/xap" . SCHEMA_VERSION;
                 return $dir if $rdonly;
 
-                my $part = $self->{partition};
-                defined $part or die "partition not given";
-                $dir .= "/$part";
+                my $shard = $self->{shard};
+                defined $shard or die "shard not given";
+                $dir .= "/$shard";
         }
 }