Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita855118

Browse files
committed
Fix debug message output when connecting to a logical slot.
Previously the message erroneously printed the same LSN twice as theassignment to the start_lsn variable was before the message. Correctthat.Reported-By: Marko TiikkajaAuthor: Marko TiikkajaBackpatch: 9.5, where logical decoding was introduced
1 parent073082b commita855118

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/replication/logical/logical.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,12 @@ CreateDecodingContext(XLogRecPtr start_lsn,
406406
* decoding. Clients have to be able to do that to support synchronous
407407
* replication.
408408
*/
409-
start_lsn=slot->data.confirmed_flush;
410409
elog(DEBUG1,"cannot stream from %X/%X, minimum is %X/%X, forwarding",
411410
(uint32) (start_lsn >>32), (uint32)start_lsn,
412411
(uint32) (slot->data.confirmed_flush >>32),
413412
(uint32)slot->data.confirmed_flush);
413+
414+
start_lsn=slot->data.confirmed_flush;
414415
}
415416

416417
ctx=StartupDecodingContext(output_plugin_options,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp