Fix a use after free in adaptive executor

pull/2812/head
Hadi Moshayedi 2019-07-02 10:12:13 -07:00
parent d6c667946c
commit 805a2ac602
1 changed files with 3 additions and 4 deletions

View File

@ -1171,16 +1171,15 @@ CleanUpSessions(DistributedExecution *execution)
elog(WARNING, "unexpected transaction state at the end of execution: %d", elog(WARNING, "unexpected transaction state at the end of execution: %d",
transactionState); transactionState);
} }
/* get ready for the next executions if we need use the same connection */
connection->waitFlags = WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE;
} }
else else
{ {
elog(WARNING, "unexpected connection state at the end of execution: %d", elog(WARNING, "unexpected connection state at the end of execution: %d",
connection->connectionState); connection->connectionState);
} }
/* get ready for the next executions if we need use the same connection */
connection->waitFlags = WL_SOCKET_READABLE | WL_SOCKET_WRITEABLE;
execution->waitFlagsChanged = true;
} }
} }