feat(Core): Add clustering support (#16832)

Co-authored-by: 3kynox <thierry.prost@gmail.com>
Co-authored-by: nox <nox@noxen.net>
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
This commit is contained in:
Anton Popovichenko
2026-07-27 18:51:04 +02:00
committed by GitHub
parent f23ac046ab
commit 6f0ba8e896
80 changed files with 3675 additions and 297 deletions
+5 -1
View File
@@ -53,7 +53,11 @@ void GroupMgr::InitGroupIds()
void GroupMgr::RegisterGroupId(ObjectGuid::LowType groupId)
{
// Allocation was done in InitGroupIds()
// InitGroupIds() sizes the bitmap to the local MAX(guid) at startup. In cluster mode the
// group service assigns ids (auto-increment), which can exceed that bound, so grow on demand.
if (groupId >= _groupIds.size())
_groupIds.resize(groupId + 1);
_groupIds[groupId] = true;
// Groups are pulled in ascending order from db and _nextGroupId is initialized with 1,