pgsql: Fix count_usable_fds() to stop trying to open files once it

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Fix count_usable_fds() to stop trying to open files once it

Tom Lane-3
Log Message:
-----------
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.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
    pgsql/src/backend/storage/file:
        fd.c (r1.102.2.2 -> r1.102.2.3)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/file/fd.c.diff?r1=1.102.2.2&r2=1.102.2.3)

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [hidden email] so that your
       message can get through to the mailing list cleanly