Skip to content

Commit d4ad167

Browse files
committed
Fix copy & paste mistake in pg_get_replication_slots().
XLogRecPtr was compared with InvalidTransactionId instead of InvalidXLogRecPtr. As both are defined to the same value this doesn't cause any actual problems, but it's still wrong. Backpatch: 9.4-master, bug was introduced in 9.4
1 parent 68b5c08 commit d4ad167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/slotfuncs.c

+1-1
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)