[TD-225] fix bugs in heartBeatactivitytimer
This commit is contained in:
parent
03f088e98b
commit
09e727544d
|
@ -191,9 +191,16 @@ void tscProcessHeartBeatRsp(void *param, TAOS_RES *tres, int code) {
|
||||||
void tscProcessActivityTimer(void *handle, void *tmrId) {
|
void tscProcessActivityTimer(void *handle, void *tmrId) {
|
||||||
int64_t rid = (int64_t) handle;
|
int64_t rid = (int64_t) handle;
|
||||||
STscObj *pObj = taosAcquireRef(tscRefId, rid);
|
STscObj *pObj = taosAcquireRef(tscRefId, rid);
|
||||||
if (pObj == NULL) return;
|
if (pObj == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
SSqlObj* pHB = taosAcquireRef(tscObjRef, pObj->hbrid);
|
SSqlObj* pHB = taosAcquireRef(tscObjRef, pObj->hbrid);
|
||||||
|
if (pHB == NULL) {
|
||||||
|
taosReleaseRef(tscRefId, rid);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
assert(pHB->self == pObj->hbrid);
|
assert(pHB->self == pObj->hbrid);
|
||||||
|
|
||||||
pHB->retry = 0;
|
pHB->retry = 0;
|
||||||
|
|
Loading…
Reference in New Issue