File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -181,7 +181,8 @@ GlobalSnapshotStartup(TransactionId oldestActiveXID)
181
181
* Run only if we have initialized shared memory and gsXidMap
182
182
* is enabled.
183
183
*/
184
- if (IsNormalProcessingMode () && global_snapshot_defer_time > 0 )
184
+ if (IsNormalProcessingMode () && track_global_snapshots &&
185
+ global_snapshot_defer_time > 0 )
185
186
{
186
187
int i ;
187
188
Original file line number Diff line number Diff line change @@ -1847,7 +1847,8 @@ GetSnapshotData(Snapshot snapshot)
1847
1847
snapshot -> imported_global_csn = false;
1848
1848
snapshot -> global_csn = global_csn ;
1849
1849
/* if (global_snapshot_defer_time > 0 && IsNormalProcessingMode()) */
1850
- if (global_snapshot_defer_time > 0 && IsUnderPostmaster )
1850
+ if (track_global_snapshots && global_snapshot_defer_time > 0 &&
1851
+ IsUnderPostmaster )
1851
1852
GlobalSnapshotMapXmin (snapshot -> global_csn );
1852
1853
1853
1854
return snapshot ;
You can’t perform that action at this time.
0 commit comments