From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 669951F461 for ; Thu, 30 Nov 2023 11:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1701344469; bh=4qiBq8wseNVFK1EuTO+VF1ZoT0xJTNBSpquZeuFfvUA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aFMWyZ9fyyXtwo1bxpIDHpcCMbWJRjRoX3cBs2HbvH4Qo40EP+Z+S0/isXihAS/W/ O8qns6K8wiz3PKx/vI11HCChlFeBII8pX+yKcnqpw4iHea3a5P3tqxYr+Ie00M2FcH DAk7Pa7ISsKYbdk1U0VmCSFsu7vho9s2dWyJ0eYQ= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 02/15] codesearch: allow inbox count to exceed matches Date: Thu, 30 Nov 2023 11:40:55 +0000 Message-ID: <20231130114109.2577708-3-e@80x24.org> In-Reply-To: <20231130114109.2577708-1-e@80x24.org> References: <20231130114109.2577708-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's entirely possible for public inboxes to have zero patches in them, so the amount of match slots may not match match the number of joined ekeys. --- lib/PublicInbox/CodeSearch.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/CodeSearch.pm b/lib/PublicInbox/CodeSearch.pm index 5c5774cf..60deb2ae 100644 --- a/lib/PublicInbox/CodeSearch.pm +++ b/lib/PublicInbox/CodeSearch.pm @@ -69,7 +69,7 @@ sub join_data { W: $self->{topdir} join data for $self->{-cfg_f} missing: @m EOM undef; - } elsif (@{$cur->{ekeys}} != @{$cur->{ibx2root}}) { + } elsif (@{$cur->{ekeys}} < @{$cur->{ibx2root}}) { warn <{topdir} join data for $self->{-cfg_f} mismatched ekeys and ibx2root EOM