Commit d8652288 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

AllocateFile():

   fdleft = pg_nofile() - allocatedFiles - nfile;
looks more realistic, but too noisy -
   fdleft = pg_nofile() - allocatedFiles;
restored.
parent 449e5755
......@@ -6,7 +6,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Id: fd.c,v 1.17 1997/05/22 16:51:19 vadim Exp $
* $Id: fd.c,v 1.18 1997/05/23 02:56:48 vadim Exp $
*
* NOTES:
*
......@@ -835,7 +835,7 @@ AllocateFile()
}
close(fd);
++allocatedFiles;
fdleft = pg_nofile() - allocatedFiles - nfile;
fdleft = pg_nofile() - allocatedFiles;
if (fdleft < 6) {
elog(NOTICE,"warning: few usable file descriptors left (%d)", fdleft);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment