[Fix] Prevent zone from loading ETL ID's on bootup (#4696)

This commit is contained in:
Chris Miles 2025-02-18 13:27:56 -06:00 committed by GitHub
parent 6f390c81f9
commit 9fd935ef10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,14 +81,13 @@ void PlayerEventLogs::Init()
if (!settings_to_insert.empty()) {
PlayerEventLogSettingsRepository::ReplaceMany(*m_database, settings_to_insert);
}
LoadEtlIds();
bool processing_in_world = !RuleB(Logging, PlayerEventsQSProcess) && IsWorld();
bool processing_in_qs = RuleB(Logging, PlayerEventsQSProcess) && IsQueryServ();
// on initial boot process truncation
if (processing_in_world || processing_in_qs) {
LoadEtlIds();
ProcessRetentionTruncation();
}
}