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-707 Fix memory accounting for ORDER BY
Missed off window function order by memory accounting in my first commit for MCOL-707. Fixed in the same way
This commit is contained in:
@ -339,13 +339,13 @@ void IdbOrderBy::initialize(const RowGroup& rg)
|
|||||||
IdbCompare::initialize(rg);
|
IdbCompare::initialize(rg);
|
||||||
|
|
||||||
uint64_t newSize = fRowsPerRG * rg.getRowSize();
|
uint64_t newSize = fRowsPerRG * rg.getRowSize();
|
||||||
if (!fRm->getMemory(newSize, fSessionMemLimit))
|
fMemSize += newSize;
|
||||||
|
if (!fRm->getMemory(newSize, fSessionMemLimit))
|
||||||
{
|
{
|
||||||
cerr << IDBErrorInfo::instance()->errorMsg(fErrorCode)
|
cerr << IDBErrorInfo::instance()->errorMsg(fErrorCode)
|
||||||
<< " @" << __FILE__ << ":" << __LINE__;
|
<< " @" << __FILE__ << ":" << __LINE__;
|
||||||
throw IDBExcept(fErrorCode);
|
throw IDBExcept(fErrorCode);
|
||||||
}
|
}
|
||||||
fMemSize += newSize;
|
|
||||||
fData.reinit(fRowGroup, fRowsPerRG);
|
fData.reinit(fRowGroup, fRowsPerRG);
|
||||||
fRowGroup.setData(&fData);
|
fRowGroup.setData(&fData);
|
||||||
fRowGroup.resetRowGroup(0);
|
fRowGroup.resetRowGroup(0);
|
||||||
|
Reference in New Issue
Block a user