1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-4031 More accurate memory usage counting while sorting

This commit is contained in:
Alexey Antipovsky
2020-12-16 18:21:35 +03:00
parent 86a32c2bc3
commit 5080e1ae53
4 changed files with 46 additions and 11 deletions

View File

@ -772,7 +772,7 @@ void IdbOrderBy::initialize(const RowGroup& rg)
// initialize rows
IdbCompare::initialize(rg);
uint64_t newSize = fRowsPerRG * rg.getRowSize();
uint64_t newSize = rg.getSizeWithStrings(fRowsPerRG);
fMemSize += newSize;
if (!fRm->getMemory(newSize, fSessionMemLimit))