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
[MCOL-4709] Fix UB in disk aggregation
This commit is contained in:
@ -660,6 +660,19 @@ public:
|
||||
fLRU->clear();
|
||||
fMM->release();
|
||||
fRGDatas.clear();
|
||||
|
||||
// we need at least one RGData so create it right now
|
||||
auto* curRG = new RGData(*fRowGroupOut, fMaxRows);
|
||||
fRowGroupOut->setData(curRG);
|
||||
fRowGroupOut->resetRowGroup(0);
|
||||
fRGDatas.emplace_back(curRG);
|
||||
auto memSz = fRowGroupOut->getSizeWithStrings(fMaxRows);
|
||||
if (!fMM->acquire(memSz))
|
||||
{
|
||||
throw logging::IDBExcept(logging::IDBErrorInfo::instance()->errorMsg(
|
||||
logging::ERR_AGGREGATION_TOO_BIG),
|
||||
logging::ERR_AGGREGATION_TOO_BIG);
|
||||
}
|
||||
++fGeneration;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user