Core/DataStores: Delay building all DB2Manager containers after loading hotfix data to ignore rows marked as deleted by hotfixes

Port From (https://github.com/TrinityCore/TrinityCore/commit/da1ac5aa73afdb7f2379b71761e2a6e855ce4e9a)
This commit is contained in:
Hondacrx
2025-06-02 16:02:07 -04:00
parent 7d4c54730c
commit bfbf96ac25
3 changed files with 17 additions and 12 deletions
+5 -1
View File
@@ -37,8 +37,10 @@ namespace Game.DataStorage
}
}
public void LoadStores()
public void IndexLoadedStores()
{
uint oldMSTime = Time.GetMSTime();
foreach (var areaGroupMember in AreaGroupMemberStorage.Values)
_areaGroupMembers.Add(areaGroupMember.AreaGroupID, areaGroupMember.AreaID);
@@ -688,6 +690,8 @@ namespace Game.DataStorage
foreach (PvpStatRecord pvpStat in PvpStatStorage.Values)
_pvpStatIdsByMap.Add(pvpStat.MapID, pvpStat.Id);
Log.outInfo(LogFilter.ServerLoading, $"Indexed DB2 data stores in {Time.GetMSTimeDiffToNow(oldMSTime)} ms");
}
public IDB2Storage GetStorage(uint type)