From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A128D1F917 for ; Fri, 24 Jul 2020 05:56:09 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 13/20] xapcmd: set {from} properly for v1 inboxes Date: Fri, 24 Jul 2020 05:55:59 +0000 Message-Id: <20200724055606.27332-14-e@yhbt.net> In-Reply-To: <20200724055606.27332-1-e@yhbt.net> References: <20200724055606.27332-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This was a bug, but I'm not sure where it matters, yet, but it may matter in the future. --- lib/PublicInbox/Xapcmd.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Xapcmd.pm b/lib/PublicInbox/Xapcmd.pm index c04f935cd..4ee3fc791 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(); }