]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
codesearch: allow inbox count to exceed matches
authorEric Wong <e@80x24.org>
Thu, 30 Nov 2023 11:40:55 +0000 (11:40 +0000)
committerEric Wong <e@80x24.org>
Thu, 30 Nov 2023 21:36:49 +0000 (21:36 +0000)
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

index 5c5774cfb0b3100a471fa236152b002613503ca4..60deb2aef8ac8fe8f897b742badaa8b2f3538ef4 100644 (file)
@@ -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 <<EOM;
 W: $self->{topdir} join data for $self->{-cfg_f} mismatched ekeys and ibx2root
 EOM