git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9340fb8)
Improve messages for too many private files/dirs. Per Alexey Parshin.
2010年9月28日 22:08:02 +0000 (18:08 -0400)
2010年9月28日 22:08:02 +0000 (18:08 -0400)

diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 27f0ef83c71be9b0fea5787883da73e6d26166eb..d9ab5e1ea2452131c2778acca6ad913ad4b333af 100644 (file)
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -1398,7 +1398,8 @@ AllocateFile(const char *name, const char *mode)
*/
if (numAllocatedDescs >= MAX_ALLOCATED_DESCS ||
numAllocatedDescs >= max_safe_fds - 1)
- elog(ERROR, "too many private files demanded");
+ elog(ERROR, "exceeded MAX_ALLOCATED_DESCS while trying to open file \"%s\"",
+ name);
TryAgain:
if ((file = fopen(name, mode)) != NULL)
@@ -1513,7 +1514,8 @@ AllocateDir(const char *dirname)
*/
if (numAllocatedDescs >= MAX_ALLOCATED_DESCS ||
numAllocatedDescs >= max_safe_fds - 1)
- elog(ERROR, "too many private dirs demanded");
+ elog(ERROR, "exceeded MAX_ALLOCATED_DESCS while trying to open directory \"%s\"",
+ dirname);
TryAgain:
if ((dir = opendir(dirname)) != NULL)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /