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:
@ -33,6 +33,7 @@
|
||||
#include "we_brm.h"
|
||||
#include "bytestream.h"
|
||||
#include "liboamcpp.h"
|
||||
#include "oamcache.h"
|
||||
#include "messagequeue.h"
|
||||
#include "messagequeuepool.h"
|
||||
#include "we_messages.h"
|
||||
@ -119,7 +120,7 @@ static int generate_result(BRM::OID_t oid, BRM::DBRM* emp, TABLE* table, THD* th
|
||||
off_t compressedFileSize = 0;
|
||||
we_config.initConfigCache();
|
||||
messageqcpp::MessageQueueClient* msgQueueClient;
|
||||
oam::Oam oam_instance;
|
||||
oam::OamCache* oamcache = oam::OamCache::makeOamCache();
|
||||
int pmId = 0;
|
||||
int rc;
|
||||
|
||||
@ -141,7 +142,7 @@ static int generate_result(BRM::OID_t oid, BRM::DBRM* emp, TABLE* table, THD* th
|
||||
|
||||
try
|
||||
{
|
||||
oam_instance.getDbrootPmConfig(iter->dbRoot, pmId);
|
||||
pmId = oamcache->getOwnerPM(iter->dbRoot);
|
||||
}
|
||||
catch (std::runtime_error&)
|
||||
{
|
||||
|
Reference in New Issue
Block a user