refactor: add assert in hash.

This commit is contained in:
Haojun Liao 2022-05-21 16:56:27 +08:00
parent f8d8beadeb
commit ff615a066c
1 changed files with 3 additions and 0 deletions

View File

@ -774,8 +774,11 @@ static void *taosHashReleaseNode(SHashObj *pHashObj, void *p, int *slot) {
if (pOld->refCount <=0) {
if (prevNode) {
prevNode->next = pOld->next;
ASSERT(prevNode->next != prevNode);
} else {
pe->next = pOld->next;
SHashNode* x = pe->next;
ASSERT(x->next != x);
}
pe->num--;