aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-02-13 19:18:54 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-02-13 19:18:54 +0000
commitcf4cc7843c17db5142a12edddb1bd17b33ea72d8 (patch)
tree20ef33b781de4f4489bb1599edaa6dfd391b17fa /src/backend/access/gist/gistvacuum.c
parentb9c65aed82a487c51a7d3b8bdfb731141215ba5a (diff)
downloadpostgresql-cf4cc7843c17db5142a12edddb1bd17b33ea72d8.tar.gz
postgresql-cf4cc7843c17db5142a12edddb1bd17b33ea72d8.zip
Improve postmaster's behavior if an accept() call fails. Because the server
socket is still read-ready, the code was a tight loop, wasting lots of CPU. We can't do anything to clear the failure, other than wait, but we should give other processes more chance to finish and release FDs; so insert a small sleep. Also, avoid bogus "close(-1)" in this case. Per report from Jim Nasby.
Diffstat (limited to 'src/backend/access/gist/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions