From edf8babee1b1cf130f394d0fedf999c858fbc91d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 13 Nov 2023 13:15:46 +0000 Subject: cidx_xap_helper_aux: complain about truncated inputs This will help us notice bugs and system resource limitations sooner rather than later. --- lib/PublicInbox/CidxXapHelperAux.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/CidxXapHelperAux.pm b/lib/PublicInbox/CidxXapHelperAux.pm index f402bde0..91c9b021 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); -- cgit v1.2.3-24-ge0c7