chore(MySQL): Deprecate 5.6 (#4070)
This commit is contained in:
parent
79aa560654
commit
f16aad0ad4
3 changed files with 5 additions and 13 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue