refact code

This commit is contained in:
Hongze Cheng 2023-01-10 11:56:09 +08:00
parent bff8c216cc
commit 2e161729b6
1 changed files with 1 additions and 3 deletions

View File

@ -321,14 +321,12 @@ int32_t vnodeBufPoolRecycle(SVBufPool *pPool) {
if (rc == 0 || rc == TSDB_CODE_VND_QUERY_BUSY) { if (rc == 0 || rc == TSDB_CODE_VND_QUERY_BUSY) {
pNode = pTNode; pNode = pTNode;
} else { } else {
taosThreadMutexUnlock(&pPool->mutex);
code = rc; code = rc;
goto _exit; goto _exit;
} }
} }
taosThreadMutexUnlock(&pPool->mutex);
_exit: _exit:
taosThreadMutexUnlock(&pPool->mutex);
return code; return code;
} }