Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd865228

Browse files
committed
AllocateFile():
fdleft = pg_nofile() - allocatedFiles - nfile;looks more realistic, but too noisy - fdleft = pg_nofile() - allocatedFiles;restored.
1 parent449e575 commitd865228

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/file

1 file changed

+2
-2
lines changed

‎src/backend/storage/file/fd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 1994, Regents of the University of California
77
*
88
* IDENTIFICATION
9-
* $Id: fd.c,v 1.17 1997/05/22 16:51:19 vadim Exp $
9+
* $Id: fd.c,v 1.18 1997/05/23 02:56:48 vadim Exp $
1010
*
1111
* NOTES:
1212
*
@@ -835,7 +835,7 @@ AllocateFile()
835835
}
836836
close(fd);
837837
++allocatedFiles;
838-
fdleft=pg_nofile()-allocatedFiles-nfile;
838+
fdleft=pg_nofile()-allocatedFiles;
839839
if (fdleft<6) {
840840
elog(NOTICE,"warning: few usable file descriptors left (%d)",fdleft);
841841
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp