fix: protect against nullptr in syncRespCleanRsp

This commit is contained in:
Benguang Zhao 2023-05-08 17:02:51 +08:00
parent 5d4830956a
commit bd5372c378
1 changed files with 2 additions and 0 deletions

View File

@ -171,6 +171,8 @@ static void syncRespCleanByTTL(SSyncRespMgr *pObj, int64_t ttl, bool rsp) {
} }
void syncRespCleanRsp(SSyncRespMgr *pObj) { void syncRespCleanRsp(SSyncRespMgr *pObj) {
if (pObj == NULL) return;
SSyncNode *pNode = pObj->data; SSyncNode *pNode = pObj->data;
sTrace("vgId:%d, clean all resp", pNode->vgId); sTrace("vgId:%d, clean all resp", pNode->vgId);