mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-17 16:10:49 +01:00
Core/DBLayer: Don't lock a connection when doing mysql_real_escape_string as it doesn't need to interact with the server.
This commit is contained in:
@@ -446,10 +446,7 @@ class DatabaseWorkerPool
|
||||
if (!to || !from || !length)
|
||||
return 0;
|
||||
|
||||
T* t = GetFreeConnection();
|
||||
unsigned long ret = mysql_real_escape_string(t->GetHandle(), to, from, length);
|
||||
t->Unlock();
|
||||
return ret;
|
||||
return mysql_real_escape_string(m_connections[IDX_SYNCH][0]->GetHandle(), to, from, length);
|
||||
}
|
||||
|
||||
void Enqueue(SQLOperation* op)
|
||||
|
||||
Reference in New Issue
Block a user