void ResManagerShmemInit(void) { if (IsResQueueEnabled() && Gp_role == GP_ROLE_DISPATCH) { InitResScheduler(); InitResPortalIncrementHash(); } else if (IsResGroupEnabled() && !IsUnderPostmaster) { ResGroupControlInit(); } }