Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc250994

Browse files
committed
Fix bug slowing down pgbench when -P is used.
A removed check inba3deee made all threads but the main one busy-loopwhen -P was used. All threads computed the time to the next time theprogress report should be printed, but only the main thread did so andre-scheduled it only for the future.Reported-By: Jesper PedersenDiscussion: 55C4E190.3050104@redhat.com
1 parent89db839 commitc250994

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3646,7 +3646,7 @@ threadRun(void *arg)
36463646
}
36473647

36483648
/* also wake up to print the next progress report on time */
3649-
if (progress&&min_usec>0)
3649+
if (progress&&min_usec>0&&thread->tid==0)
36503650
{
36513651
/* get current time if needed */
36523652
if (now_usec==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp