aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2015-08-05 13:26:01 +0200
committerAndres Freund <andres@anarazel.de>2015-08-05 13:26:01 +0200
commita855118be3f0682a2061448db5a87dec50717af4 (patch)
treeba78196e7a72c53c8d067c8cca4d648284d0f89b /src
parent073082bbb1adc4548132915874a001688514e64f (diff)
downloadpostgresql-a855118be3f0682a2061448db5a87dec50717af4.tar.gz
postgresql-a855118be3f0682a2061448db5a87dec50717af4.zip
Fix debug message output when connecting to a logical slot.
Previously the message erroneously printed the same LSN twice as the assignment to the start_lsn variable was before the message. Correct that. Reported-By: Marko Tiikkaja Author: Marko Tiikkaja Backpatch: 9.5, where logical decoding was introduced
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/logical/logical.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/replication/logical/logical.c b/src/backend/replication/logical/logical.c
index 824bc915b1d..7643add6d2c 100644
--- a/src/backend/replication/logical/logical.c
+++ b/src/backend/replication/logical/logical.c
@@ -406,11 +406,12 @@ CreateDecodingContext(XLogRecPtr start_lsn,
* decoding. Clients have to be able to do that to support synchronous
* replication.
*/
- start_lsn = slot->data.confirmed_flush;
elog(DEBUG1, "cannot stream from %X/%X, minimum is %X/%X, forwarding",
(uint32) (start_lsn >> 32), (uint32) start_lsn,
(uint32) (slot->data.confirmed_flush >> 32),
(uint32) slot->data.confirmed_flush);
+
+ start_lsn = slot->data.confirmed_flush;
}
ctx = StartupDecodingContext(output_plugin_options,