fix hash entry assertion issue.

This commit is contained in:
Shuduo Sang 2020-04-29 17:34:32 +08:00
parent 5c0b0e2266
commit 8386d26ceb
1 changed files with 1 additions and 0 deletions

View File

@ -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) {