mirror of https://github.com/citusdata/citus.git
switch back to old memory context in cache local plan for task (#3428)
parent
ca85b2b4ff
commit
94bd563ff0
|
@ -433,6 +433,7 @@ CacheLocalPlanForTask(Task *task, DistributedPlan *originalDistributedPlan)
|
||||||
if (rangeTableEntry->relid == InvalidOid)
|
if (rangeTableEntry->relid == InvalidOid)
|
||||||
{
|
{
|
||||||
pfree(shardQuery);
|
pfree(shardQuery);
|
||||||
|
MemoryContextSwitchTo(oldContext);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue