diff options
author | Kitzunu <24550914+Kitzunu@users.noreply.github.com> | 2021-01-03 03:14:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 03:14:06 +0100 |
commit | f16aad0ad4b3012fc36719578efb9b8ece5a34e6 (patch) | |
tree | b6d094137c905a28f338ca98ac97d2d7e9a1fa17 /src/common/Database/DatabaseWorkerPool.cpp | |
parent | 79aa5606547d898542557a01a2150f76e477e9e9 (diff) |
chore(MySQL): Deprecate 5.6 (#4070)
Diffstat (limited to 'src/common/Database/DatabaseWorkerPool.cpp')
-rw-r--r-- | src/common/Database/DatabaseWorkerPool.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Database/DatabaseWorkerPool.cpp b/src/common/Database/DatabaseWorkerPool.cpp index 8e7c822172..95f32a875c 100644 --- a/src/common/Database/DatabaseWorkerPool.cpp +++ b/src/common/Database/DatabaseWorkerPool.cpp @@ -7,8 +7,8 @@ #include "DatabaseWorkerPool.h" #include "DatabaseEnv.h" -#define MIN_MYSQL_SERVER_VERSION 50600u -#define MIN_MYSQL_CLIENT_VERSION 50600u +#define MIN_MYSQL_SERVER_VERSION 50700u +#define MIN_MYSQL_CLIENT_VERSION 50700u template <class T> DatabaseWorkerPool<T>::DatabaseWorkerPool() : _mqueue(new ACE_Message_Queue<ACE_SYNCH>(2 * 1024 * 1024, 2 * 1024 * 1024)), @@ -18,7 +18,7 @@ template <class T> DatabaseWorkerPool<T>::DatabaseWorkerPool() : _connections.resize(IDX_SIZE); WPFatal(mysql_thread_safe(), "Used MySQL library isn't thread-safe."); - WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + WPFatal(mysql_get_client_version() >= MIN_MYSQL_CLIENT_VERSION, "AzerothCore does not support MySQL versions below 5.7"); } template <class T> @@ -37,7 +37,7 @@ bool DatabaseWorkerPool<T>::Open(const std::string& infoString, uint8 async_thre T* t = new T(_queue, _connectionInfo); res &= t->Open(); if (res) // only check mysql version if connection is valid - WPFatal(mysql_get_server_version(t->GetHandle()) >= MIN_MYSQL_SERVER_VERSION, "AzerothCore does not support MySQL versions below 5.6"); + WPFatal(mysql_get_server_version(t->GetHandle()) >= MIN_MYSQL_SERVER_VERSION, "AzerothCore does not support MySQL versions below 5.7"); _connections[IDX_ASYNC][i] = t; ++_connectionCount[IDX_ASYNC]; |