mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 04:59:41 -04:00
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:
@@ -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