fix: memory error when limit 0
This commit is contained in:
parent
5c9edce538
commit
70f869ce33
|
@ -1100,7 +1100,7 @@ static int32_t createBlocksMergeSortInitialSources(SSortHandle* pHandle) {
|
||||||
|
|
||||||
int64_t p = taosGetTimestampUs();
|
int64_t p = taosGetTimestampUs();
|
||||||
bool bExtractedBlock = false;
|
bool bExtractedBlock = false;
|
||||||
if (pBlk != NULL && pHandle->mergeLimit != -1) {
|
if (pBlk != NULL && pHandle->mergeLimit > 0) {
|
||||||
pBlk = getRowsBlockWithinMergeLimit(pHandle, mTableNumRows, pBlk, &bExtractedBlock);
|
pBlk = getRowsBlockWithinMergeLimit(pHandle, mTableNumRows, pBlk, &bExtractedBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue