fix: error handle
This commit is contained in:
parent
72bd7742b4
commit
afca8eb914
|
@ -1126,7 +1126,7 @@ int32_t tMergeTreeNext(SMergeTree *pMTree, bool *pHasNext) {
|
||||||
if (c > 0) {
|
if (c > 0) {
|
||||||
(void)tRBTreePut(&pMTree->rbt, (SRBTreeNode *)pMTree->pIter);
|
(void)tRBTreePut(&pMTree->rbt, (SRBTreeNode *)pMTree->pIter);
|
||||||
pMTree->pIter = NULL;
|
pMTree->pIter = NULL;
|
||||||
} else {
|
} else if (!c) {
|
||||||
return TSDB_CODE_INTERNAL_ERROR;
|
return TSDB_CODE_INTERNAL_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue