Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5c4b25a

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 70fd0e1 commit 5c4b25a

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
@@ -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)