Merge branch 'feature/3_liaohj' of github.com:taosdata/TDengine into feature/3_liaohj

This commit is contained in:
dapan1121 2022-06-16 15:03:35 +08:00
commit 8f5a85f698
1 changed files with 1 additions and 1 deletions

View File

@ -439,7 +439,7 @@ SOperatorInfo* createMultiwaySortMergeOperatorInfo(SOperatorInfo** downStreams,
pInfo->bufPageSize = getProperSortPageSize(rowSize); pInfo->bufPageSize = getProperSortPageSize(rowSize);
uint32_t numOfSources = taosArrayGetSize(pSortInfo); uint32_t numOfSources = taosArrayGetSize(pSortInfo);
numOfSources = MAX(2, numOfSources); numOfSources = TMAX(2, numOfSources);
pInfo->sortBufSize = numOfSources * pInfo->bufPageSize; pInfo->sortBufSize = numOfSources * pInfo->bufPageSize;