mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 06:28:19 +00:00
Fix copy paste error
This commit is contained in:
parent
b2ebcb4f3c
commit
2cbbd9088b
|
@ -168,7 +168,7 @@ void CDbConnectionPool::Worker()
|
|||
{
|
||||
for(int i = 0; i < (int)m_aapDbConnections[Mode::WRITE].size(); i++)
|
||||
{
|
||||
int CurServer = (WriteServer + i) % (int)m_aapDbConnections[Mode::READ].size();
|
||||
int CurServer = (WriteServer + i) % (int)m_aapDbConnections[Mode::WRITE].size();
|
||||
if(ExecSqlFunc(m_aapDbConnections[Mode::WRITE][i].get(), pThreadData.get(), false))
|
||||
{
|
||||
WriteServer = CurServer;
|
||||
|
|
Loading…
Reference in a new issue