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(-)
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);