Skip to content

Commit 2ad57e9

Browse files
committed
Mark correctly initial slot snapshots with MVCC type when built
When building an initial slot snapshot, snapshots are marked with historic MVCC snapshots as type with the marker field being set in SnapBuildBuildSnapshot() but not overriden in SnapBuildExportSnapshot(). Existing callers of SnapBuildBuildSnapshot() do not care about the type of snapshot used, but extensions calling it actually may, as reported. Author: Antonin Houska Reviewed-by: Álvaro Herrera, Michael Paquier Discussion: https://postgr.es/m/23215.1527665193@localhost Backpatch-through: 9.4
1 parent 64f6a65 commit 2ad57e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/replication/logical/snapbuild.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,8 @@ SnapBuildExportSnapshot(SnapBuild *builder)
636636
TransactionIdAdvance(xid);
637637
}
638638

639+
/* adjust remaining snapshot fields as needed */
640+
snap->satisfies = HeapTupleSatisfiesMVCC;
639641
snap->xcnt = newxcnt;
640642
snap->xip = newxip;
641643

0 commit comments

Comments
 (0)