Fix copy paste error

This commit is contained in:
Zwelf 2020-08-21 22:43:22 +02:00
parent b2ebcb4f3c
commit 2cbbd9088b

View file

@ -168,7 +168,7 @@ void CDbConnectionPool::Worker()
{ {
for(int i = 0; i < (int)m_aapDbConnections[Mode::WRITE].size(); i++) 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)) if(ExecSqlFunc(m_aapDbConnections[Mode::WRITE][i].get(), pThreadData.get(), false))
{ {
WriteServer = CurServer; WriteServer = CurServer;