about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-24 05:55:59 +0000
committerEric Wong <e@yhbt.net>2020-07-25 20:48:18 +0000
commit9dd7f90d71ee6d4ba533aee341c9dc44b06fcc6e (patch)
treeed850d9c03088aea6717b6baed53d533c60195d7
parent5e5f3cfdb27f38c1cfb8125ba3a97faf17edb7c7 (diff)
downloadpublic-inbox-9dd7f90d71ee6d4ba533aee341c9dc44b06fcc6e.tar.gz
This was a bug, but I'm not sure where it matters, yet, but it
may matter in the future.
-rw-r--r--lib/PublicInbox/Xapcmd.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm
index c04f935c..4ee3fc79 100644
--- a/lib/PublicInbox/Xapcmd.pm
+++ b/lib/PublicInbox/Xapcmd.pm
@@ -257,8 +257,9 @@ sub run {
         my $reindex; # v1:{ from => $x40 }, v2:{ from => [ $x40, $x40, .. ] } }
 
         if (!$opt->{-coarse_lock}) {
-                $reindex = $opt->{reindex} = {};
-                $reindex->{from} = []; # per-epoch ranges
+                $reindex = $opt->{reindex} = { # per-epoch ranges for v2
+                        from => $ibx->version == 1 ? '' : [],
+                };
                 require PublicInbox::SearchIdx;
                 PublicInbox::SearchIdx::load_xapian_writable();
         }