fix: save to ext mem file only when sort by row id
This commit is contained in:
parent
a769bc7217
commit
b5bc45c73b
|
@ -1423,8 +1423,9 @@ static int32_t sortBlocksToExtSource(SSortHandle* pHandle, SArray* aBlk, SArray*
|
|||
}
|
||||
blockDataCleanup(pHandle->pDataBlock);
|
||||
}
|
||||
|
||||
saveDirtyPagesToExtRowsMemFile(pHandle);
|
||||
if (pHandle->bSortByRowId) {
|
||||
saveDirtyPagesToExtRowsMemFile(pHandle);
|
||||
}
|
||||
|
||||
SSDataBlock* pMemSrcBlk = createOneDataBlock(pHandle->pDataBlock, false);
|
||||
doAddNewExternalMemSource(pHandle->pBuf, aExtSrc, pMemSrcBlk, &pHandle->sourceId, aPgId);
|
||||
|
|
Loading…
Reference in New Issue