From 8386d26ceb59d16b2c65f33ee3cc904bd96de58f Mon Sep 17 00:00:00 2001 From: Shuduo Sang Date: Wed, 29 Apr 2020 17:34:32 +0800 Subject: [PATCH] fix hash entry assertion issue. --- src/util/src/hash.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/src/hash.c b/src/util/src/hash.c index 13037e4750..37e8123170 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) { -- GitLab