You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +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:
@ -253,7 +253,6 @@ void rollbackAll(DBRM* dbrm)
|
||||
message5.format(args5);
|
||||
ml.logInfoMessage(message5);
|
||||
OamCache* oamcache = OamCache::makeOamCache();
|
||||
OamCache::dbRootPMMap_t dbRootPMMap = oamcache->getDBRootToPMMap();
|
||||
int errorTxn = 0;
|
||||
|
||||
for (i = 0; i < tableLocks.size(); i++)
|
||||
@ -393,7 +392,7 @@ void rollbackAll(DBRM* dbrm)
|
||||
|
||||
try
|
||||
{
|
||||
rollbackProcessor.processBulkRollback(tableLocks[i], dbrm, uniqueId, dbRootPMMap, lockReleased);
|
||||
rollbackProcessor.processBulkRollback(tableLocks[i], dbrm, uniqueId, oamcache, lockReleased);
|
||||
ostringstream oss;
|
||||
oss << "DMLProc started bulkrollback on table OID " << tableLocks[i].tableOID << " and table lock id "
|
||||
<< tableLocks[i].id << " finished and tablelock is released.";
|
||||
|
Reference in New Issue
Block a user