diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2015-06-22 20:40:01 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2015-06-22 20:40:41 -0400 |
commit | e98d635d5dbf25e5cde282af111af9fdffafa557 (patch) | |
tree | e881870e2546501a93ea97296b285923d339efd4 /src/bin/pg_rewind/file_ops.c | |
parent | 747781f25e7eaa2e5cb5ed69bdae3e5f61795d2e (diff) |
pg_rewind: Improve message wording
Diffstat (limited to 'src/bin/pg_rewind/file_ops.c')
-rw-r--r-- | src/bin/pg_rewind/file_ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_rewind/file_ops.c b/src/bin/pg_rewind/file_ops.c index d6a743f7884..c2d8aa19396 100644 --- a/src/bin/pg_rewind/file_ops.c +++ b/src/bin/pg_rewind/file_ops.c @@ -25,7 +25,7 @@ #include "pg_rewind.h" /* - * Currently open destination file. + * Currently open target file. */ static int dstfd = -1; static char dstpath[MAXPGPATH] = ""; @@ -61,7 +61,7 @@ open_target_file(const char *path, bool trunc) mode |= O_TRUNC; dstfd = open(dstpath, mode, 0600); if (dstfd < 0) - pg_fatal("could not open destination file \"%s\": %s\n", + pg_fatal("could not open target file \"%s\": %s\n", dstpath, strerror(errno)); } @@ -75,7 +75,7 @@ close_target_file(void) return; if (close(dstfd) != 0) - pg_fatal("error closing destination file \"%s\": %s\n", + pg_fatal("could not close target file \"%s\": %s\n", dstpath, strerror(errno)); dstfd = -1; @@ -96,7 +96,7 @@ write_target_range(char *buf, off_t begin, size_t size) return; if (lseek(dstfd, begin, SEEK_SET) == -1) - pg_fatal("could not seek in destination file \"%s\": %s\n", + pg_fatal("could not seek in target file \"%s\": %s\n", dstpath, strerror(errno)); writeleft = size; |