From: Eric Wong Date: Thu, 30 Nov 2023 11:40:55 +0000 (+0000) Subject: codesearch: allow inbox count to exceed matches X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=782f041e7646a5e03400ebdcd07e5e23a220bf5f;p=thirdparty%2Fpublic-inbox.git codesearch: allow inbox count to exceed matches 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. --- diff --git a/lib/PublicInbox/CodeSearch.pm b/lib/PublicInbox/CodeSearch.pm index 5c5774cfb..60deb2aef 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