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

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix count_usable_fds() to stop trying to open files once it
Date: 2005-08-07 18:48:01
Message-ID: 20050807184801.27A2352B76@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-08-07 19:02:08 pgsql: Set shlib naming convention on Cygwin to 'cygFOO.dll', which
Previous Message Tom Lane 2005-08-07 18:47:38 pgsql: Fix count_usable_fds() to stop trying to open files once it