From: Eric Wong Date: Mon, 13 Nov 2023 13:15:46 +0000 (+0000) Subject: cidx_xap_helper_aux: complain about truncated inputs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf8babee1b1cf130f394d0fedf999c858fbc91d;p=thirdparty%2Fpublic-inbox.git cidx_xap_helper_aux: complain about truncated inputs This will help us notice bugs and system resource limitations sooner rather than later. --- diff --git a/lib/PublicInbox/CidxXapHelperAux.pm b/lib/PublicInbox/CidxXapHelperAux.pm index f402bde0b..91c9b0211 100644 --- a/lib/PublicInbox/CidxXapHelperAux.pm +++ b/lib/PublicInbox/CidxXapHelperAux.pm @@ -26,7 +26,11 @@ sub event_step { } my $pfx = $self->{pfx}; if ($n == 0) { - $self->{cidx}->progress("$pfx $buf") if $buf ne ''; + warn "BUG? $pfx buf=$buf" if $buf ne ''; + if (delete $self->{cidx}->{PENDING}->{$pfx}) { + warn "BUG? $pfx did not get mset.size"; + $self->{cidx}->index_next; + } return $self->close; } my @lines = split(/^/m, $buf);