Fixed build

Fixed wrong header includes in new database files, thx Thyros

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-09-02 20:22:19 +02:00
parent e9ff90a967
commit cd182a1e8f
8 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -8750,7 +8750,7 @@ void ObjectMgr::CheckScripts(ScriptsType type, std::set<int32>& ids)
void ObjectMgr::LoadDbScriptStrings()
{
LoadTrinityStrings("db_script_string",MIN_DB_SCRIPT_STRING_ID,MAX_DB_SCRIPT_STRING_ID);
LoadTrinityStrings("db_script_string", MIN_DB_SCRIPT_STRING_ID, MAX_DB_SCRIPT_STRING_ID);
std::set<int32> ids;
@@ -112,17 +112,18 @@ class DatabaseWorkerPool
T* conn = new T();
conn->Open(m_infoString);
// no idea why it doesn't accept sLog here
{
ACE_Guard<ACE_Thread_Mutex> guard(m_connectionMap_mtx);
ConnectionMap::const_iterator itr = m_sync_connections.find(ACE_Based::Thread::current());
#ifdef _DEBUG
if (itr != m_sync_connections.end())
sLog.outSQLDriver("Thread ["UI64FMTD"] already started a MySQL connection", (uint64)ACE_Based::Thread::currentId());
ACE_Singleton<Log, ACE_Thread_Mutex>::instance()->outSQLDriver("Thread ["UI64FMTD"] already started a MySQL connection", (uint64)ACE_Based::Thread::currentId());
#endif
m_sync_connections[ACE_Based::Thread::current()] = conn;
}
sLog.outSQLDriver("Core thread with ID ["UI64FMTD"] initializing MySQL connection.",
ACE_Singleton<Log, ACE_Thread_Mutex>::instance()->outSQLDriver("Core thread with ID ["UI64FMTD"] initializing MySQL connection.",
(uint64)ACE_Based::Thread::currentId());
++m_connections;
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "LoginDatabase.h"
#include "CharacterDatabase.h"
bool CharacterDatabaseConnection::Open(const std::string& infoString)
{
@@ -27,4 +27,4 @@ bool CharacterDatabaseConnection::Open(const std::string& infoString)
*/
return MySQLConnection::Open(infoString);
}
}
@@ -40,4 +40,4 @@ enum CharacterDatabaseStatements
MAX_CHARACTERDATABASE_STATEMENTS,
};
#endif
#endif
@@ -27,4 +27,4 @@ bool LoginDatabaseConnection::Open(const std::string& infoString)
*/
return MySQLConnection::Open(infoString);
}
}
@@ -40,4 +40,4 @@ enum LoginDatabaseStatements
MAX_LOGINDATABASE_STATEMENTS,
};
#endif
#endif
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "LoginDatabase.h"
#include "WorldDatabase.h"
bool WorldDatabaseConnection::Open(const std::string& infoString)
{
@@ -27,4 +27,4 @@ bool WorldDatabaseConnection::Open(const std::string& infoString)
*/
return MySQLConnection::Open(infoString);
}
}
@@ -40,4 +40,4 @@ enum WorldDatabaseStatements
MAX_WORLDDATABASE_STATEMENTS,
};
#endif
#endif