refactor: disable commit temp

This commit is contained in:
Haojun Liao 2024-01-06 15:27:48 +08:00
parent 23341e1bdf
commit cfda97beef
1 changed files with 2 additions and 1 deletions

View File

@ -134,7 +134,6 @@ int32_t tqStreamTaskProcessUpdateReq(SStreamMeta* pMeta, SMsgCb* cb, SRpcMsg* pM
return rsp.code; return rsp.code;
} }
// todo for test purpose
// the following two functions should not be executed within the scope of meta lock to avoid deadlock // the following two functions should not be executed within the scope of meta lock to avoid deadlock
streamTaskUpdateEpsetInfo(pTask, req.pNodeList); streamTaskUpdateEpsetInfo(pTask, req.pNodeList);
streamTaskResetStatus(pTask); streamTaskResetStatus(pTask);
@ -159,9 +158,11 @@ int32_t tqStreamTaskProcessUpdateReq(SStreamMeta* pMeta, SMsgCb* cb, SRpcMsg* pM
streamMetaSaveTask(pMeta, *ppHTask); streamMetaSaveTask(pMeta, *ppHTask);
} }
#if 0
if (streamMetaCommit(pMeta) < 0) { if (streamMetaCommit(pMeta) < 0) {
// persist to disk // persist to disk
} }
#endif
} else { } else {
tqDebug("s-task:%s vgId:%d not save since restore not finish", pTask->id.idStr, vgId); tqDebug("s-task:%s vgId:%d not save since restore not finish", pTask->id.idStr, vgId);
} }