Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix check for closing connExecutor during draining
This fixes a minor bug in which the connection would not get closed at the earliest possible time during server shutdown. The connection is supposed to be closed as soon as we handle a Sync message when the conn_executor is in the draining state and not in a transaction. Since the transaction state was checked before state transitions occurred, this would cause the connection to remain open for an extra bit of time. Release note: None
- Loading branch information