File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
150
150
Assert (queryDesc -> estate == NULL );
151
151
152
152
/* caller must ensure the query's snapshot is active */
153
- Assert (GetActiveSnapshot () == queryDesc -> snapshot );
153
+ Assert (( ActiveSnapshotSet () ? GetActiveSnapshot () : InvalidSnapshot ) == queryDesc -> snapshot );
154
154
155
155
/*
156
156
* If the transaction is read-only, we need to check if any writes are
@@ -325,7 +325,7 @@ standard_ExecutorRun(QueryDesc *queryDesc,
325
325
Assert (!(estate -> es_top_eflags & EXEC_FLAG_EXPLAIN_ONLY ));
326
326
327
327
/* caller must ensure the query's snapshot is active */
328
- Assert (GetActiveSnapshot () == estate -> es_snapshot );
328
+ Assert (( ActiveSnapshotSet () ? GetActiveSnapshot () : InvalidSnapshot ) == estate -> es_snapshot );
329
329
330
330
/*
331
331
* Switch into per-query memory context
You can’t perform that action at this time.
0 commit comments