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:
MDIC
2022-06-11 09:01:53 -04:00
parent 3a601f80bf
commit 8169ab94c8

View File

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