Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[native] Fix PrestoQueryRunner in case query fails
In case the query fails, `PrestoQueryRunner::execute` throws an exception. This triggers the destructor of `SessionPool` to be called in current thread instead of the event loop thread. Fix this by wrapping the ownership transfer inside `SCOPE_EXIT`.
- Loading branch information