TD-2437<hotfix>: fix coverity scan problem
This commit is contained in:
parent
0f1d6ee6c1
commit
26682c968c
|
@ -280,7 +280,10 @@ bool tSkipListIterNext(SSkipListIterator *iter) {
|
||||||
tSkipListRLock(pSkipList);
|
tSkipListRLock(pSkipList);
|
||||||
|
|
||||||
if (iter->order == TSDB_ORDER_ASC) {
|
if (iter->order == TSDB_ORDER_ASC) {
|
||||||
if (iter->cur == pSkipList->pTail) return false;
|
if (iter->cur == pSkipList->pTail) {
|
||||||
|
tSkipListUnlock(pSkipList);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
iter->cur = SL_NODE_GET_FORWARD_POINTER(iter->cur, 0);
|
iter->cur = SL_NODE_GET_FORWARD_POINTER(iter->cur, 0);
|
||||||
|
|
||||||
// a new node is inserted into between iter->cur and iter->next, ignore it
|
// a new node is inserted into between iter->cur and iter->next, ignore it
|
||||||
|
|
Loading…
Reference in New Issue