Skip to content

Commit bd4bd30

Browse files
committed
Use correct type for catalog_xmin
Commit 85c17f6 mistakenly declared a variable storing catalog_xmin as XLogRecPtr, even though catalog_xmin is a TransactionId. This caused no functional issue, but the type was clearly incorrect. Therefore, this commit fixes it to use the correct type TransactionId instead, and backpatch to v17 where the issue was introduced. Author: Imran Zaheer <imran.zhir@gmail.com> Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CA+UBfa=mNeLt-4BFjEP4tqdDsnq+oMqqPr7fd9Wji2_9YXmQdA@mail.gmail.com
1 parent 1c77203 commit bd4bd30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/replication/logical/slotsync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ update_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid)
340340
bool found_consistent_snapshot;
341341
XLogRecPtr old_confirmed_lsn = slot->data.confirmed_flush;
342342
XLogRecPtr old_restart_lsn = slot->data.restart_lsn;
343-
XLogRecPtr old_catalog_xmin = slot->data.catalog_xmin;
343+
TransactionId old_catalog_xmin = slot->data.catalog_xmin;
344344

345345
LogicalSlotAdvanceAndCheckSnapState(remote_slot->confirmed_lsn,
346346
&found_consistent_snapshot);

0 commit comments

Comments
 (0)