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

Commitd4ad167

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 parent68b5c08 commitd4ad167

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
@@ -263,7 +263,7 @@ pg_get_replication_slots(PG_FUNCTION_ARGS)
263263
else
264264
nulls[i++]= true;
265265

266-
if (restart_lsn!=InvalidTransactionId)
266+
if (restart_lsn!=InvalidXLogRecPtr)
267267
values[i++]=LSNGetDatum(restart_lsn);
268268
else
269269
nulls[i++]= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp