fix(stream): release ref.

This commit is contained in:
Haojun Liao 2024-09-29 18:23:07 +08:00
parent 4c98786352
commit e1719f8de4
1 changed files with 3 additions and 1 deletions

View File

@ -89,11 +89,13 @@ static void doStartScanWal(void* param, void* tmrId) {
pTq->pVnode->restored);
int32_t code = streamTaskSchedTask(&pTq->pVnode->msgCb, vgId, 0, 0, STREAM_EXEC_T_EXTRACT_WAL_DATA);
taosMemoryFree(pParam);
if (code) {
tqError("vgId:%d failed sched task to scan wal, code:%s", vgId, tstrerror(code));
}
taosReleaseRef(streamMetaId, pParam->metaId);
taosMemoryFree(pParam);
}
int32_t tqScanWalInFuture(STQ* pTq, int32_t numOfTasks, int32_t idleDuration) {