]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
Merge tag 'v1.6.1' into eidx
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index f20b5c7f0a75d5f22a0814929f5fc0cd0c3c6734..567582c5ff7979ba74276d23cdc5c9c24649604d 100644 (file)
@@ -879,7 +879,7 @@ sub reindex_checkpoint ($$) {
                $self->done; # release lock
        }
 
-       if (my $pr = $sync->{-opt}->{-progress}) {
+       if (my $pr = $sync->{-regen_fmt} ? $sync->{-opt}->{-progress} : undef) {
                $pr->(sprintf($sync->{-regen_fmt}, ${$sync->{nr}}));
        }