fix: change memory size for row storage in memory pages
This commit is contained in:
parent
7bc4791ad6
commit
70419dcbc6
|
@ -3575,8 +3575,9 @@ int32_t startRowIdSort(STableMergeScanInfo *pInfo) {
|
|||
STmsSortRowIdInfo* pSort = &pInfo->sortRowIdInfo;
|
||||
int32_t pageSize = getProperSortPageSize(blockDataGetRowSize(pInfo->pResBlock),
|
||||
taosArrayGetSize(pInfo->pResBlock->pDataBlock));
|
||||
pageSize *= 2;
|
||||
int32_t memSize = MIN(pageSize * 2048, 256 * 1024 * 1024);
|
||||
pageSize *= 2;
|
||||
int numOfTables = pInfo->tableEndIndex - pInfo->tableStartIndex + 1;
|
||||
int32_t memSize = MIN(pageSize * numOfTables, 512 * 1024 * 1024);
|
||||
int32_t code = createDiskbasedBuf(&pSort->pExtSrcRowsBuf, pageSize * 2, memSize, "tms-ext-src-block", tsTempDir);
|
||||
dBufSetPrintInfo(pSort->pExtSrcRowsBuf);
|
||||
return code;
|
||||
|
|
Loading…
Reference in New Issue