mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
AllocateFile():
fdleft = pg_nofile() - allocatedFiles - nfile; looks more realistic, but too noisy - fdleft = pg_nofile() - allocatedFiles; restored.
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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:
|
* NOTES:
|
||||||
*
|
*
|
||||||
@ -835,7 +835,7 @@ AllocateFile()
|
|||||||
}
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
++allocatedFiles;
|
++allocatedFiles;
|
||||||
fdleft = pg_nofile() - allocatedFiles - nfile;
|
fdleft = pg_nofile() - allocatedFiles;
|
||||||
if (fdleft < 6) {
|
if (fdleft < 6) {
|
||||||
elog(NOTICE,"warning: few usable file descriptors left (%d)", fdleft);
|
elog(NOTICE,"warning: few usable file descriptors left (%d)", fdleft);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user