diff options
author | Andres Freund <andres@anarazel.de> | 2015-01-05 12:22:50 +0100 |
---|---|---|
committer | Andres Freund <andres@anarazel.de> | 2015-01-05 12:31:05 +0100 |
commit | 3c9e4cdbf2ec876dbb71aa80a4cc18662fbd41c2 (patch) | |
tree | 6a9e12eeb5b2bffecb3fa258997a7394216c2acb /src | |
parent | 9f1d7313aa8deb0529edbef4ac157561c37d4e2f (diff) | |
download | postgresql-3c9e4cdbf2ec876dbb71aa80a4cc18662fbd41c2.tar.gz postgresql-3c9e4cdbf2ec876dbb71aa80a4cc18662fbd41c2.zip |
Fix oversight in recent pg_basebackup fix causing pg_receivexlog failures.
A oversight in 2c0a485896 causes 'could not create archive status file
"...": No such file or directory' errors in pg_receivexlog if the
target directory doesn't happen to contain a archive_status
directory. That's due to a stupidly left over 'true' constant instead
of mark_done being passed down to ProcessXLogDataMsg().
The bug is only present in the master branch, and luckily wasn't
released.
Spotted by Fujii Masao.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/receivelog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/receivelog.c b/src/bin/pg_basebackup/receivelog.c index dc1d7d86484..30c4b106522 100644 --- a/src/bin/pg_basebackup/receivelog.c +++ b/src/bin/pg_basebackup/receivelog.c @@ -906,7 +906,7 @@ HandleCopyStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline, { if (!ProcessXLogDataMsg(conn, copybuf, r, &blockpos, timeline, basedir, stream_stop, - partial_suffix, true)) + partial_suffix, mark_done)) goto error; /* |