diff options
Diffstat (limited to 'src/bin/pg_basebackup/receivelog.c')
-rw-r--r-- | src/bin/pg_basebackup/receivelog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index 15932c60b5a..888458f4a90 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -136,7 +136,7 @@ open_walfile(StreamCtl *stream, XLogRecPtr startpoint) if (stream->walmethod->sync(f) != 0) { fprintf(stderr, - _("%s: could not sync existing write-ahead log file \"%s\": %s\n"), + _("%s: could not fsync existing write-ahead log file \"%s\": %s\n"), progname, fn, stream->walmethod->getlasterror()); stream->walmethod->close(f, CLOSE_UNLINK); return false; @@ -151,7 +151,9 @@ open_walfile(StreamCtl *stream, XLogRecPtr startpoint) if (errno == 0) errno = ENOSPC; fprintf(stderr, - _("%s: write-ahead log file \"%s\" has %d bytes, should be 0 or %d\n"), + ngettext("%s: write-ahead log file \"%s\" has %d byte, should be 0 or %d\n", + "%s: write-ahead log file \"%s\" has %d bytes, should be 0 or %d\n", + size), progname, fn, (int) size, XLogSegSize); return false; } |