about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-26 01:17:43 +0000
committerEric Wong <e@yhbt.net>2020-01-27 02:58:07 +0000
commit7c5ac90b309bbe76468055e8a9289664ef2dfe37 (patch)
tree3756cc39f302fd42116bd3da88121105e3a29eab /lib/PublicInbox/SearchIdx.pm
parent227a1d886672767e37cc86a3432952c14eb8a143 (diff)
downloadpublic-inbox-7c5ac90b309bbe76468055e8a9289664ef2dfe37.tar.gz
search: {version} => {ibx_ver}
We don't confuse human readers with the Xapian schema version.
We also want to make it obvious this is the version of the inbox
we're indexing, these are Search or SearchIdx objects, not Inbox
objects.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 4e951bbe..4349d127 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -54,7 +54,7 @@ sub new {
                 -inbox => $ibx,
                 git => $ibx->git,
                 -altid => $altid,
-                version => $version,
+                ibx_ver => $version,
                 indexlevel => $indexlevel,
         }, $class;
         $ibx->umask_prepare;
@@ -358,7 +358,7 @@ sub add_xapian ($$$$$$) {
 
 sub _msgmap_init ($) {
         my ($self) = @_;
-        die "BUG: _msgmap_init is only for v1\n" if $self->{version} != 1;
+        die "BUG: _msgmap_init is only for v1\n" if $self->{ibx_ver} != 1;
         $self->{mm} //= eval {
                 require PublicInbox::Msgmap;
                 PublicInbox::Msgmap->new($self->{inboxdir}, 1);