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:
@ -159,19 +159,22 @@ int constructPMList(const std::vector<uint32_t>& dbRootList, std::vector<uint32_
|
||||
// Get OAM information
|
||||
oam::Oam oam;
|
||||
std::set<uint32_t> pmSet; // used to filter out duplicates
|
||||
int pm;
|
||||
std::set<int> pms;
|
||||
|
||||
for (unsigned j = 0; j < dbRootList.size(); j++)
|
||||
{
|
||||
dbRoot = dbRootList[j];
|
||||
oam.getDbrootPmConfig(dbRootList[j], pm);
|
||||
pmSet.insert(pm);
|
||||
oam.getDbrootPmConfig(dbRootList[j], pms);
|
||||
for (auto pm : pms)
|
||||
{
|
||||
pmSet.insert(pm);
|
||||
}
|
||||
}
|
||||
|
||||
// Store unique set of PM IDs into output vector
|
||||
for (std::set<uint32_t>::const_iterator iter = pmSet.begin(); iter != pmSet.end(); ++iter)
|
||||
for (auto pm : pmSet)
|
||||
{
|
||||
pmList.push_back(*iter);
|
||||
pmList.push_back(pm);
|
||||
}
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
|
Reference in New Issue
Block a user