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

Commit 7c1aead

Browse files
committed
Fix compiler warning in non-assert builds, introduced in f862d57.
Discussion: https://postgr.es/m/20220203183655.ralgkh54sdcgysmn@alap3.anarazel.de Backpatch: 14-, like f862d57
1 parent c1838b6 commit 7c1aead

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/backend/executor/nodeForeignscan.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ ForeignNext(ForeignScanState *node)
4444
TupleTableSlot *slot;
4545
ForeignScan *plan = (ForeignScan *) node->ss.ps.plan;
4646
ExprContext *econtext = node->ss.ps.ps_ExprContext;
47-
EState *estate = node->ss.ps.state;
4847
MemoryContext oldcontext;
4948

5049
/* Call the Iterate function in short-lived context */
@@ -55,7 +54,7 @@ ForeignNext(ForeignScanState *node)
5554
* direct modifications cannot be re-evaluated, so shouldn't get here
5655
* during EvalPlanQual processing
5756
*/
58-
Assert(estate->es_epq_active == NULL);
57+
Assert(node->ss.ps.state->es_epq_active == NULL);
5958

6059
slot = node->fdwroutine->IterateDirectModify(node);
6160
}

0 commit comments

Comments
 (0)