Merge branch 'hotfix/TD-2337' into release/s107
This commit is contained in:
commit
869c165135
|
@ -292,16 +292,18 @@ void taos_close(TAOS *taos) {
|
||||||
pObj->signature = NULL;
|
pObj->signature = NULL;
|
||||||
taosTmrStopA(&(pObj->pTimer));
|
taosTmrStopA(&(pObj->pTimer));
|
||||||
|
|
||||||
SSqlObj* pHb = (SSqlObj*)taosAcquireRef(tscObjRef, pObj->hbrid);
|
if (pObj->hbrid > 0) {
|
||||||
if (pHb != NULL) {
|
SSqlObj* pHb = (SSqlObj*)taosAcquireRef(tscObjRef, pObj->hbrid);
|
||||||
if (pHb->rpcRid > 0) { // wait for rsp from dnode
|
if (pHb != NULL) {
|
||||||
rpcCancelRequest(pHb->rpcRid);
|
if (pHb->rpcRid > 0) { // wait for rsp from dnode
|
||||||
pHb->rpcRid = -1;
|
rpcCancelRequest(pHb->rpcRid);
|
||||||
}
|
pHb->rpcRid = -1;
|
||||||
|
}
|
||||||
|
|
||||||
tscDebug("%p HB is freed", pHb);
|
tscDebug("%p HB is freed", pHb);
|
||||||
taos_free_result(pHb);
|
taos_free_result(pHb);
|
||||||
taosReleaseRef(tscObjRef, pHb->self);
|
taosReleaseRef(tscObjRef, pHb->self);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t ref = T_REF_DEC(pObj);
|
int32_t ref = T_REF_DEC(pObj);
|
||||||
|
|
Loading…
Reference in New Issue