fix(sync): syncRespMgrGetAndDel
This commit is contained in:
parent
fb6bebe65c
commit
1a5be99bd4
|
@ -76,8 +76,8 @@ int32_t syncRespMgrGetAndDel(SSyncRespMgr *pObj, uint64_t index, SRespStub *pStu
|
|||
void *pTmp = taosHashGet(pObj->pRespHash, &index, sizeof(index));
|
||||
if (pTmp != NULL) {
|
||||
memcpy(pStub, pTmp, sizeof(SRespStub));
|
||||
taosThreadMutexUnlock(&(pObj->mutex));
|
||||
taosHashRemove(pObj->pRespHash, &index, sizeof(index));
|
||||
taosThreadMutexUnlock(&(pObj->mutex));
|
||||
return 1; // get one object
|
||||
}
|
||||
taosThreadMutexUnlock(&(pObj->mutex));
|
||||
|
|
Loading…
Reference in New Issue