Update build checks for mangosd/realmd.

This commit is contained in:
VladimirMangos 2010-07-02 05:34:27 +04:00
parent 0a01d2bc6e
commit d81c9175d8
8 changed files with 37 additions and 12 deletions

View file

@ -50,6 +50,7 @@ DatabaseMysql::DatabaseMysql() : Database(), mMysql(0)
if (!mysql_thread_safe())
{
sLog.outError("FATAL ERROR: Used MySQL library isn't thread-safe.");
Log::WaitBeforeContinueIfNeed();
exit(1);
}
}

View file

@ -126,6 +126,7 @@ void SQLStorageLoaderBase<T>::Load(SQLStorage &store)
if(!result)
{
sLog.outError("Error loading %s table (not exist?)\n", store.table);
Log::WaitBeforeContinueIfNeed();
exit(1); // Stop server at loading non exited table or not accessable table
}
@ -159,6 +160,7 @@ void SQLStorageLoaderBase<T>::Load(SQLStorage &store)
store.RecordCount = 0;
sLog.outError("Error in %s table, probably sql file format was updated (there should be %d fields in sql).\n", store.table, store.iNumFields);
delete result;
Log::WaitBeforeContinueIfNeed();
exit(1); // Stop server at loading broken or non-compatible table.
}