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
Fix excessive memory consumption at the last stage of aggregation
This commit is contained in:
@ -684,7 +684,13 @@ class RowGroupStorage
|
||||
logging::ERR_AGGREGATION_TOO_BIG);
|
||||
}
|
||||
|
||||
fLRU->add(rgid);
|
||||
if (fMM->getFree() < memSz * 2)
|
||||
{
|
||||
saveRG(rgid);
|
||||
fRGDatas[rgid].reset();
|
||||
}
|
||||
else
|
||||
fLRU->add(rgid);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user