1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

This patch fixes nullptr dereferencing in the same node queue thread

This commit is contained in:
Roman Nozdrin
2022-08-31 18:55:48 +00:00
parent b5d8e0324b
commit eb57103c06

View File

@ -2359,11 +2359,11 @@ void PrimitiveServer::start(Service* service, utils::USpaceSpinLock& startupRace
[this]()
{
utils::setThreadName("PPSHServerThr");
auto* exeMgrDecPtr = exemgr::globServiceExeMgr->getDec();
auto* exeMgrDecPtr = (exemgr::globServiceExeMgr) ? exemgr::globServiceExeMgr->getDec() : nullptr;
while (!exeMgrDecPtr)
{
sleep(1);
exeMgrDecPtr = exemgr::globServiceExeMgr->getDec();
exeMgrDecPtr = (exemgr::globServiceExeMgr) ? exemgr::globServiceExeMgr->getDec() : nullptr;
}
// These empty SPs have "same-host" messaging semantics.
SP_UM_IOSOCK outIos(nullptr);