mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-01 20:42:17 +00:00
[Crash] Fix world crash in player event processing (#2960)
* [Crash] Fix world crash in player event processing * Add rule BatchPlayerEventProcessChunkSize
This commit is contained in:
1 parent
4a8222f243
commit
9f42da5bad
2 files changed
+5
No files matched your search
@@ -139,6 +139,10 @@ void PlayerEventLogs::AddToQueue(const PlayerEventLogsRepository::PlayerEventLog
|
||||
m_batch_queue_lock.lock();
|
||||
m_record_batch_queue.emplace_back(log);
|
||||
m_batch_queue_lock.unlock();
|
||||
|
||||
if (m_record_batch_queue.size() >= RuleI(Logging, BatchPlayerEventProcessChunkSize)) {
|
||||
ProcessBatchQueue();
|
||||
}
|
||||
}
|
||||
|
||||
// fills common event data in the SendEvent function
|
||||
|
||||
Reference in new issue
Block a user