fix hash entry assertion issue.
This commit is contained in:
parent
5c0b0e2266
commit
8386d26ceb
|
@ -521,6 +521,7 @@ SHashMutableIterator *taosHashCreateIter(SHashObj *pHashObj) {
|
||||||
static SHashNode *getNextHashNode(SHashMutableIterator *pIter) {
|
static SHashNode *getNextHashNode(SHashMutableIterator *pIter) {
|
||||||
assert(pIter != NULL);
|
assert(pIter != NULL);
|
||||||
|
|
||||||
|
pIter->entryIndex++;
|
||||||
while (pIter->entryIndex < pIter->pHashObj->capacity) {
|
while (pIter->entryIndex < pIter->pHashObj->capacity) {
|
||||||
SHashEntry *pEntry = pIter->pHashObj->hashList[pIter->entryIndex];
|
SHashEntry *pEntry = pIter->pHashObj->hashList[pIter->entryIndex];
|
||||||
if (pEntry->next == NULL) {
|
if (pEntry->next == NULL) {
|
||||||
|
|
Loading…
Reference in New Issue