about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-30 11:40:55 +0000
committerEric Wong <e@80x24.org>2023-11-30 21:36:49 +0000
commit782f041e7646a5e03400ebdcd07e5e23a220bf5f (patch)
treedda9e1f379cbbdd59792b3c2be46def887fdd443
parent0e784739cc8a336d7e204b50f4efc569e79461a3 (diff)
downloadpublic-inbox-782f041e7646a5e03400ebdcd07e5e23a220bf5f.tar.gz
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.
-rw-r--r--lib/PublicInbox/CodeSearch.pm2
1 files changed, 1 insertions, 1 deletions
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 <<EOM;
 W: $self->{topdir} join data for $self->{-cfg_f} mismatched ekeys and ibx2root
 EOM