Skip to content

Commit 574c7c7

Browse files
committed
Use correct datatype for xmin variables in slot.c
Two variables storing a slot's effective_xmin and effective_catalog_xmin were saved as XLogRecPtr, which is incorrect as these should be TransactionIds. Oversight in 818fefd. Author: Bharath Rupireddy Discussion: https://postgr.es/m/CALj2ACVPSB74mrDTFezz-LV3Oi6F3SN71QA0oUHvndzi5dwTNg@mail.gmail.com Backpatch-through: 16
1 parent 48f216d commit 574c7c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/slot.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,8 +1322,8 @@ InvalidatePossiblyObsoleteSlot(ReplicationSlotInvalidationCause cause,
13221322
int last_signaled_pid = 0;
13231323
bool released_lock = false;
13241324
bool terminated = false;
1325-
XLogRecPtr initial_effective_xmin = InvalidXLogRecPtr;
1326-
XLogRecPtr initial_catalog_effective_xmin = InvalidXLogRecPtr;
1325+
TransactionId initial_effective_xmin = InvalidTransactionId;
1326+
TransactionId initial_catalog_effective_xmin = InvalidTransactionId;
13271327
XLogRecPtr initial_restart_lsn = InvalidXLogRecPtr;
13281328
ReplicationSlotInvalidationCause conflict_prev PG_USED_FOR_ASSERTS_ONLY = RS_INVAL_NONE;
13291329

0 commit comments

Comments
 (0)