aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-10-01 09:29:27 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-10-01 09:34:29 +0300
commitbabf18579455e85269ad75e1ddb03f34138f77b6 (patch)
treee15d8987106bb0f76bb8e10241729334b9d84dee /src/backend/access/gist/gistxlog.c
parent2aab70205be012d06f7d077dd1fa5e6afea9d19c (diff)
downloadpostgresql-babf18579455e85269ad75e1ddb03f34138f77b6.tar.gz
postgresql-babf18579455e85269ad75e1ddb03f34138f77b6.zip
Fix busy-wait in pgbench, with --rate.
If --rate was used to throttle pgbench, it failed to sleep when it had nothing to do, leading to a busy-wait with 100% CPU usage. This bug was introduced in the refactoring in v10. Before that, sleep() was called with a timeout, even when there were no file descriptors to wait for. Reported by Jeff Janes, patch by Fabien COELHO. Backpatch to v10. Discussion: https://www.postgresql.org/message-id/CAMkU%3D1x5hoX0pLLKPRnXCy0T8uHoDvXdq%2B7kAM9eoC9_z72ucw%40mail.gmail.com
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions