8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 06:03:02 +01:00

Improvement CORE-5648 : Avoid serialization of isc_attach_database calls issued by EXECUTE STATEMENT implementation

This commit is contained in:
hvlad 2017-10-24 13:07:38 +03:00
parent 3ff941d4f3
commit 0d0c9ccfda

View File

@ -1581,7 +1581,7 @@ void Statement::unBindFromRequest()
void EngineCallbackGuard::init(thread_db* tdbb, Connection& conn, const char* from)
{
m_tdbb = tdbb;
m_mutex = conn.isConnected() ? &conn.m_mutex : &conn.m_provider.m_mutex;
m_mutex = &conn.m_mutex;
m_saveConnection = NULL;
if (m_tdbb)