From 782f041e7646a5e03400ebdcd07e5e23a220bf5f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Nov 2023 11:40:55 +0000 Subject: 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. --- 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 -- cgit v1.2.3-24-ge0c7