fix: release tsc obj
This commit is contained in:
parent
45a0933316
commit
b66583bd02
|
@ -785,11 +785,14 @@ int32_t hbQueryHbReqHandle(SClientHbKey *connKey, void *param, SClientHbReq *req
|
|||
if (!pTscObj) {
|
||||
tscWarn("tscObj rid %" PRIx64 " not exist", connKey->tscRid);
|
||||
return TSDB_CODE_APP_ERROR;
|
||||
} else if (atomic_load_8(&pTscObj->dropped) == 1) {
|
||||
} else {
|
||||
if (atomic_load_8(&pTscObj->dropped) == 1) {
|
||||
tscDebug("tscObj rid %" PRIx64 " user:%s dropped", connKey->tscRid, pTscObj->user);
|
||||
releaseTscObj(connKey->tscRid);
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
releaseTscObj(connKey->tscRid);
|
||||
}
|
||||
|
||||
if (hbParam->reqCnt == 0) {
|
||||
code = catalogGetHandle(hbParam->clusterId, &pCatalog);
|
||||
|
|
Loading…
Reference in New Issue