Otherwise it may be confusing to see the `$nr' value walk backwards if some shards are indexing at a slower pace. --- lib/PublicInbox/CodeSearchIdx.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/CodeSearchIdx.pm b/lib/PublicInbox/CodeSearchIdx.pm index 97c563bd..ee2d9a47 100644 --- a/lib/PublicInbox/CodeSearchIdx.pm +++ b/lib/PublicInbox/CodeSearchIdx.pm @@ -186,7 +186,7 @@ sub shard_index { # via wq_io_do last if $quit; # likely SIGPIPE ++$nr; if ($max <= 0 && !$PublicInbox::Search::X{CLOEXEC_UNSET}) { - progress($self, $nr); + progress($self, "[$n] $nr"); $self->{xdb}->commit_transaction; $max = $batch_bytes; $self->{xdb}->begin_transaction;