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: d497093)
Fix incorrect copy-pasto in error message of pg_waldump.c
2022年12月27日 03:16:24 +0000 (12:16 +0900)
2022年12月27日 03:16:24 +0000 (12:16 +0900)
The error message used on fclose() failure was incorrect, so fix it.
Oversight in d497093, that I have somehow managed to miss.


diff --git a/src/bin/pg_waldump/pg_waldump.c b/src/bin/pg_waldump/pg_waldump.c
index 15cc500672dd074e60853921b4bb8bb586e9e4f4..e97c47f307119fb25836d40351069949ff830bdc 100644 (file)
--- a/src/bin/pg_waldump/pg_waldump.c
+++ b/src/bin/pg_waldump/pg_waldump.c
@@ -529,7 +529,7 @@ XLogRecordSaveFPWs(XLogReaderState *record, const char *savepath)
pg_fatal("could not write file \"%s\": %m", filename);
if (fclose(file) != 0)
- pg_fatal("could not write file \"%s\": %m", filename);
+ pg_fatal("could not close file \"%s\": %m", filename);
}
}
This is the main PostgreSQL git repository.
RSS Atom

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