OSDN Git Service

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:47:19 +0000 (18:47 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 7 Aug 2005 18:47:19 +0000 (18:47 +0000)
commit5337ad464ef91d811ecafbebf4698eab6b3d8e8d
tree14f022e80fce90a999d1ac6b4cab73e911449df7
parent9b29f9f3f86d0f03f61d8b9e449d5107615a3615
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