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

Commit5c4b25a

Browse files
committed
Fix copy & paste mistake in pg_get_replication_slots().
XLogRecPtr was compared with InvalidTransactionId instead ofInvalidXLogRecPtr. As both are defined to the same value this doesn'tcause any actual problems, but it's still wrong.Backpatch: 9.4-master, bug was introduced in 9.4
1 parent70fd0e1 commit5c4b25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/replication/slotfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
268268
else
269269
nulls[i++]= true;
270270

271-
if (restart_lsn!=InvalidTransactionId)
271+
if (restart_lsn!=InvalidXLogRecPtr)
272272
values[i++]=LSNGetDatum(restart_lsn);
273273
else
274274
nulls[i++]= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp