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:
Machiavelli
2011-06-22 15:04:13 +02:00
parent fe8cb75bf1
commit 0df059d5a2

View File

@@ -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)