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:
Machiavelli
2010-12-19 15:48:55 +01:00
parent 14a480cb13
commit e2a8dfffbe
5 changed files with 114 additions and 38 deletions

View File

@@ -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