diff options
author | Eric Wong <e@yhbt.net> | 2020-07-24 05:55:59 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-25 20:48:18 +0000 |
commit | 9dd7f90d71ee6d4ba533aee341c9dc44b06fcc6e (patch) | |
tree | ed850d9c03088aea6717b6baed53d533c60195d7 | |
parent | 5e5f3cfdb27f38c1cfb8125ba3a97faf17edb7c7 (diff) | |
download | public-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.pm | 5 |
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(); } |