Merge pull request #12805 from taosdata/feature/3.0_mhli
fix(sync): syncRespMgrGetAndDel
This commit is contained in:
commit
474d53d895
|
@ -76,8 +76,8 @@ int32_t syncRespMgrGetAndDel(SSyncRespMgr *pObj, uint64_t index, SRespStub *pStu
|
||||||
void *pTmp = taosHashGet(pObj->pRespHash, &index, sizeof(index));
|
void *pTmp = taosHashGet(pObj->pRespHash, &index, sizeof(index));
|
||||||
if (pTmp != NULL) {
|
if (pTmp != NULL) {
|
||||||
memcpy(pStub, pTmp, sizeof(SRespStub));
|
memcpy(pStub, pTmp, sizeof(SRespStub));
|
||||||
taosThreadMutexUnlock(&(pObj->mutex));
|
|
||||||
taosHashRemove(pObj->pRespHash, &index, sizeof(index));
|
taosHashRemove(pObj->pRespHash, &index, sizeof(index));
|
||||||
|
taosThreadMutexUnlock(&(pObj->mutex));
|
||||||
return 1; // get one object
|
return 1; // get one object
|
||||||
}
|
}
|
||||||
taosThreadMutexUnlock(&(pObj->mutex));
|
taosThreadMutexUnlock(&(pObj->mutex));
|
||||||
|
|
Loading…
Reference in New Issue