You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +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:
@@ -611,8 +611,7 @@ void DDLPackageProcessor::createFiles(CalpontSystemCatalog::TableName aTableName
|
||||
try
|
||||
{
|
||||
OamCache* oamcache = OamCache::makeOamCache();
|
||||
boost::shared_ptr<std::map<int, int> > dbRootPMMap = oamcache->getDBRootToPMMap();
|
||||
int pmNum = (*dbRootPMMap)[useDBRoot];
|
||||
int pmNum = oamcache->getOwnerPM(useDBRoot);
|
||||
|
||||
fWEClient->write(bytestream, (uint32_t)pmNum);
|
||||
bsIn.reset(new ByteStream());
|
||||
|
Reference in New Issue
Block a user