1
0
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:
Alexey Antipovsky
2021-10-01 16:10:46 +03:00
parent 4e2d4984cf
commit dca359c2ab

View File

@ -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
{