File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -2039,14 +2039,6 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
20392039 serialized_snapshot .whenTaken = snapshot -> whenTaken ;
20402040 serialized_snapshot .lsn = snapshot -> lsn ;
20412041
2042- /*
2043- * Ignore the SubXID array if it has overflowed, unless the snapshot was
2044- * taken during recovey - in that case, top-level XIDs are in subxip as
2045- * well, and we mustn't lose them.
2046- */
2047- if (serialized_snapshot .suboverflowed && !snapshot -> takenDuringRecovery )
2048- serialized_snapshot .subxcnt = 0 ;
2049-
20502042 /* Copy struct to possibly-unaligned buffer */
20512043 memcpy (start_address ,
20522044 & serialized_snapshot , sizeof (SerializedSnapshotData ));
@@ -2063,6 +2055,9 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
20632055 * snapshot taken during recovery; all the top-level XIDs are in subxip as
20642056 * well in that case, so we mustn't lose them.
20652057 */
2058+ if (serialized_snapshot .suboverflowed && !snapshot -> takenDuringRecovery )
2059+ serialized_snapshot .subxcnt = 0 ;
2060+
20662061 if (serialized_snapshot .subxcnt > 0 )
20672062 {
20682063 Size subxipoff = sizeof (SerializedSnapshotData ) +
You can’t perform that action at this time.
0 commit comments