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

Commit 7ed9285

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 SnapBuildInitialSnapshot(). 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 7eedd66 commit 7ed9285

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
@@ -617,6 +617,8 @@ SnapBuildInitialSnapshot(SnapBuild *builder)
617617
TransactionIdAdvance(xid);
618618
}
619619

620+
/* adjust remaining snapshot fields as needed */
621+
snap->satisfies = HeapTupleSatisfiesMVCC;
620622
snap->xcnt = newxcnt;
621623
snap->xip = newxip;
622624

0 commit comments

Comments
 (0)