diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pgbench/pgbench.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 255717bfd22..6eb912d3079 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -5765,6 +5765,10 @@ threadRun(void *arg) } } + /* under throttling we may have finished the last client above */ + if (remains == 0) + break; + /* also wake up to print the next progress report on time */ if (progress && min_usec > 0 && thread->tid == 0) { |