fix: error handle

This commit is contained in:
Hongze Cheng 2024-08-27 13:36:27 +08:00
parent 72bd7742b4
commit afca8eb914
1 changed files with 1 additions and 1 deletions

View File

@ -1126,7 +1126,7 @@ int32_t tMergeTreeNext(SMergeTree *pMTree, bool *pHasNext) {
if (c > 0) {
(void)tRBTreePut(&pMTree->rbt, (SRBTreeNode *)pMTree->pIter);
pMTree->pIter = NULL;
} else {
} else if (!c) {
return TSDB_CODE_INTERNAL_ERROR;
}
}