projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1946b1
)
Fix error message in pre_sync_fname.
author
Robert Haas
Mon, 18 May 2015 16:53:09 +0000
(12:53 -0400)
committer
Robert Haas
Mon, 18 May 2015 17:17:09 +0000
(13:17 -0400)
The old one didn't include %m anywhere, and required extra
translation.
Report by Peter Eisentraut. Fix by me. Review by Tom Lane.
src/backend/storage/file/fd.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/file/fd.c
b/src/backend/storage/file/fd.c
index 7552ba0b4028f0d084d7e53c4f1867c658661033..fea0998e85882f1ab47aefca9be2504798bde50b 100644
(file)
--- a/
src/backend/storage/file/fd.c
+++ b/
src/backend/storage/file/fd.c
@@
-2287,7
+2287,7
@@
pre_sync_fname(char *fname, bool isdir)
if (fd < 0)
ereport(FATAL,
- (errmsg("could not open file \"%s\"
before fsync
",
+ (errmsg("could not open file \"%s\"
: %m
",
fname)));
pg_flush_data(fd, 0, 0);