Core/DBLayer:
- Add generic HandleMySQLErrno() method. - Add the ability to re-execute a certain statement if errorhandler resolved the situation succesfuly. - Add support for MySQL errno´s 2006, 2013, 2048, 2055 - fixes automatic reconnection behaviour. - Cleanup in affected code NOTE: You should still be smart enough to configure your worldserver and authserver´s MaxPingTime to be lower than your MySQL´s wait_time. --HG-- branch : trunk
This commit is contained in:
1 parent
14a480cb13
commit
e2a8dfffbe
5 files changed
+114
-38
No files matched your search
@@ -22,7 +22,9 @@ bool CharacterDatabaseConnection::Open()
|
||||
if (!MySQLConnection::Open())
|
||||
return false;
|
||||
|
||||
m_stmts.resize(MAX_CHARACTERDATABASE_STATEMENTS);
|
||||
if (!m_reconnecting)
|
||||
m_stmts.resize(MAX_CHARACTERDATABASE_STATEMENTS);
|
||||
|
||||
/*
|
||||
##################################
|
||||
LOAD YOUR PREPARED STATEMENTS HERE
|
||||
|
||||
Reference in new issue
Block a user