mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-23 13:36:25 +00:00
fix (core): Dead Locks
On high player populations deadlocks seem to be caused when you use the .anticheat global gm cmds. SaveAllPlayer is just not necessary or needed in this module which would cause the possible deadlock issues. Its already set to save the player's anticheat data statistics ever minute already. This save all is not need.
This commit is contained in:
@@ -938,9 +938,6 @@ void AnticheatMgr::BuildReport(Player* player, uint16 reportType)
|
||||
|
||||
void AnticheatMgr::AnticheatGlobalCommand(ChatHandler* handler)
|
||||
{
|
||||
// MySQL will sort all for us, anyway this is not the best way we must only save the anticheat data not whole player's data!.
|
||||
ObjectAccessor::SaveAllPlayers();
|
||||
|
||||
QueryResult resultDB = CharacterDatabase.Query("SELECT guid,average,total_reports FROM players_reports_status WHERE total_reports != 0 ORDER BY average ASC LIMIT 3;");
|
||||
if (!resultDB)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user