You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL4841 dev port run large join without OOM
This commit is contained in:
@ -5432,11 +5432,10 @@ void TupleAggregateStep::threadedAggregateRowGroups(uint32_t threadID)
|
||||
if (more)
|
||||
{
|
||||
fRowGroupIns[threadID].setData(&rgData);
|
||||
fMemUsage[threadID] += fRowGroupIns[threadID].getSizeWithStrings();
|
||||
|
||||
bool diskAggAllowed = fRm->getAllowDiskAggregation();
|
||||
if (!fRm->getMemory(fRowGroupIns[threadID].getSizeWithStrings(), fSessionMemLimit,
|
||||
!diskAggAllowed))
|
||||
int64_t memSize = fRowGroupIns[threadID].getSizeWithStrings();
|
||||
if (!fRm->getMemory(memSize, fSessionMemLimit, !diskAggAllowed))
|
||||
{
|
||||
if (!diskAggAllowed)
|
||||
{
|
||||
@ -5456,6 +5455,7 @@ void TupleAggregateStep::threadedAggregateRowGroups(uint32_t threadID)
|
||||
}
|
||||
break;
|
||||
}
|
||||
fMemUsage[threadID] += memSize;
|
||||
rgDatas.push_back(rgData);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user