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

MCOL-4770 Installation.PMwithUM is enabled by default so a plugin communicates with a local EM only

Fix in DEC::Setup to allow to re-establish all PM connections in EM
This commit is contained in:
Roman Nozdrin
2021-06-23 10:38:46 +00:00
parent c6f4f00b0d
commit 14dbb6a8fb
3 changed files with 7 additions and 2 deletions

View File

@ -329,8 +329,11 @@ void DistributedEngineComm::Setup()
for (j = 0; j < pmCount; j++)
{
if (newClients[i]->isSameAddr(*fPmConnections[j]))
if (!fPmConnections.empty() && j < fPmConnections.size() &&
newClients[i]->isSameAddr(*fPmConnections[j]))
{
break;
}
}
if (j == pmCount)

View File

@ -171,6 +171,8 @@ ResourceManager::ResourceManager(bool runningInExeMgr) :
totalUmMemLimit = pmJoinMemLimit;
else
{
// Installation.PMwithUM = y by default so RM prefers HashJoin.TotalPmUmMemory
// if it exists.
string whichLimit = "TotalUmMemory";
string pmWithUM = fConfig->getConfig("Installation", "PMwithUM");