diff --git a/src/util/src/hash.c b/src/util/src/hash.c index 13037e4750430ab871dd9e2091181480b9a0ea96..37e8123170b4a88f234d2bdc98735b46b2061b1a 100644 --- a/src/util/src/hash.c +++ b/src/util/src/hash.c @@ -521,6 +521,7 @@ SHashMutableIterator *taosHashCreateIter(SHashObj *pHashObj) { static SHashNode *getNextHashNode(SHashMutableIterator *pIter) { assert(pIter != NULL); + pIter->entryIndex++; while (pIter->entryIndex < pIter->pHashObj->capacity) { SHashEntry *pEntry = pIter->pHashObj->hashList[pIter->entryIndex]; if (pEntry->next == NULL) {