fix/TS-5532-set-seperate-thread-update-status-fix-check

This commit is contained in:
dmchen 2024-10-22 06:55:53 +00:00
parent 4d85866d18
commit 0f37acbe96
1 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,9 @@ void dmClearVars(SDnode *pDnode) {
dError("failed to unlock status info lock");
return;
}
taosThreadMutexDestroy(&pData->statusInfolock);
if (taosThreadMutexDestroy(&pData->statusInfolock) != 0) {
dError("failed to destroy status info lock");
}
memset(&pData->statusInfolock, 0, sizeof(pData->statusInfolock));
(void)taosThreadMutexDestroy(&pDnode->mutex);