You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
feat(MCOL-6082): Multiple readers of dbroots using OamCache logic
This patch introduces centralized logic of selecting what dbroot is accessible in PrimProc on what node. The logic is in OamCache for time being and can be moved later.
This commit is contained in:
@ -758,8 +758,7 @@ int RedistributeControlThread::executeRedistributePlan()
|
||||
int RedistributeControlThread::connectToWes(int dbroot)
|
||||
{
|
||||
int ret = 0;
|
||||
OamCache::dbRootPMMap_t dbrootToPM = fOamCache->getDBRootToPMMap();
|
||||
int pmId = (*dbrootToPM)[dbroot];
|
||||
int pmId = fOamCache->getOwnerPM(dbroot);
|
||||
ostringstream oss;
|
||||
oss << "pm" << pmId << "_WriteEngineServer";
|
||||
|
||||
|
@ -134,11 +134,10 @@ void RedistributeWorkerThread::handleRequest()
|
||||
{
|
||||
memcpy(&fPlanEntry, fBs.buf(), sizeof(RedistributePlanEntry));
|
||||
fBs.advance(sizeof(RedistributePlanEntry));
|
||||
OamCache::dbRootPMMap_t dbrootToPM = fOamCache->getDBRootToPMMap();
|
||||
fMyId.first = fPlanEntry.source;
|
||||
fMyId.second = (*dbrootToPM)[fMyId.first];
|
||||
fMyId.second = fOamCache->getOwnerPM(fMyId.first);
|
||||
fPeerId.first = fPlanEntry.destination;
|
||||
fPeerId.second = (*dbrootToPM)[fPeerId.first];
|
||||
fPeerId.second = fOamCache->getOwnerPM(fPeerId.first);
|
||||
|
||||
if (grabTableLock() == 0)
|
||||
{
|
||||
|
Reference in New Issue
Block a user