提交 b2d41ce9 编写于 作者: wmmhello's avatar wmmhello

Merge branch 'main' of https://github.com/taosdata/TDengine into fix/TD-25071

...@@ -2557,6 +2557,9 @@ static int32_t tmqGetWalInfoCb(void* param, SDataBuf* pMsg, int32_t code) { ...@@ -2557,6 +2557,9 @@ static int32_t tmqGetWalInfoCb(void* param, SDataBuf* pMsg, int32_t code) {
} }
static void destroyCommonInfo(SMqVgCommon* pCommon) { static void destroyCommonInfo(SMqVgCommon* pCommon) {
if(pCommon == NULL){
return;
}
taosArrayDestroy(pCommon->pList); taosArrayDestroy(pCommon->pList);
tsem_destroy(&pCommon->rsp); tsem_destroy(&pCommon->rsp);
taosThreadMutexDestroy(&pCommon->mutex); taosThreadMutexDestroy(&pCommon->mutex);
......
...@@ -104,7 +104,7 @@ STqOffsetStore* tqOffsetOpen(STQ* pTq) { ...@@ -104,7 +104,7 @@ STqOffsetStore* tqOffsetOpen(STQ* pTq) {
pStore->needCommit = 0; pStore->needCommit = 0;
pTq->pOffsetStore = pStore; pTq->pOffsetStore = pStore;
pStore->pHash = taosHashInit(64, MurmurHash3_32, true, HASH_NO_LOCK); pStore->pHash = taosHashInit(64, MurmurHash3_32, true, HASH_ENTRY_LOCK);
if (pStore->pHash == NULL) { if (pStore->pHash == NULL) {
taosMemoryFree(pStore); taosMemoryFree(pStore);
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册