From 2cbbd9088bb6b6b91b00e42b3c63635de0d89ed4 Mon Sep 17 00:00:00 2001 From: Zwelf Date: Fri, 21 Aug 2020 22:43:22 +0200 Subject: [PATCH] Fix copy paste error --- src/engine/server/databases/connection_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/server/databases/connection_pool.cpp b/src/engine/server/databases/connection_pool.cpp index 538bdb5c2..5ed2804a9 100644 --- a/src/engine/server/databases/connection_pool.cpp +++ b/src/engine/server/databases/connection_pool.cpp @@ -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;