1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +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,9 +329,12 @@ 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)
for (uint32_t k = 0; k < eventListeners.size(); k++)

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");

View File

@ -443,7 +443,7 @@
<InitialInstallFlag>y</InitialInstallFlag>
<SingleServerInstall>y</SingleServerInstall>
<ServerTypeInstall>2</ServerTypeInstall>
<PMwithUM>n</PMwithUM>
<PMwithUM>y</PMwithUM>
<MySQLRep>n</MySQLRep>
<DBRootStorageType>internal</DBRootStorageType>
<UMStorageType>internal</UMStorageType>