]> granicus.if.org Git - postgresql/commit
Fix count_usable_fds() to stop trying to open files once it reaches
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Aug 2005 18:48:00 +0000 (18:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Aug 2005 18:48:00 +0000 (18:48 +0000)
commitc98a606f4d16307697ef723bde5d0c6aed7f7a19
tree5ce1da4b6a83d184e5d7f2c5876f9fd0f3b1083f
parentc76de7d85ecf7fc4034d42fc544d37f9d4aec7b6
Fix count_usable_fds() to stop trying to open files once it reaches
max_files_per_process.  Going further than that is just a waste of
cycles, and it seems that current Cygwin does not cope gracefully
with deliberately running the system out of FDs.  Per Andrew Dunstan.
src/backend/storage/file/fd.c