From d86522880769574a291e91b379ff5bae82553bfa Mon Sep 17 00:00:00 2001 From: "Vadim B. Mikheev" Date: Fri, 23 May 1997 02:56:48 +0000 Subject: [PATCH] AllocateFile(): fdleft = pg_nofile() - allocatedFiles - nfile; looks more realistic, but too noisy - fdleft = pg_nofile() - allocatedFiles; restored. --- src/backend/storage/file/fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index b037a0f3541..34e8fe2a0e4 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -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); } -- 2.39.5