Fix bug in pg_receivexlog --verbose.
authorFujii Masao <fujii@postgresql.org>
Sat, 2 Aug 2014 05:57:21 +0000 (14:57 +0900)
committerFujii Masao <fujii@postgresql.org>
Sat, 2 Aug 2014 05:58:44 +0000 (14:58 +0900)
In 9.2, pg_receivexlog with verbose option has emitted the messages
at the end of each WAL file. But the commit 0b63291 suppressed such
messages by mistake. This commit fixes the bug so that pg_receivexlog
--verbose outputs such messages again.

Back-patch to 9.3 where the bug was added.

src/bin/pg_basebackup/receivelog.c

index a88457fb28805ab349494f16d22a40638ca802e6..d57d293735b807f586f9fdbe5a0efd0dfef7c8fd 100644 (file)
@@ -1028,7 +1028,7 @@ HandleCopyStream(PGconn *conn, XLogRecPtr startpos, uint32 timeline,
 
                                        xlogoff = 0;
 
-                                       if (still_sending && stream_stop(blockpos, timeline, false))
+                                       if (still_sending && stream_stop(blockpos, timeline, true))
                                        {
                                                if (PQputCopyEnd(conn, NULL) <= 0 || PQflush(conn))
                                                {