提交 8a6a876f 编写于 作者: H Haojun Liao

fix(stream): fix error in generating checkpoint.

上级 93f546f5
...@@ -527,11 +527,12 @@ int32_t streamTryExec(SStreamTask* pTask) { ...@@ -527,11 +527,12 @@ int32_t streamTryExec(SStreamTask* pTask) {
qDebug("vgId:%d do vnode wide checkpoint completed, checkpoint id:%"PRId64, pMeta->vgId); qDebug("vgId:%d do vnode wide checkpoint completed, checkpoint id:%"PRId64, pMeta->vgId);
} }
code = updateCheckPointInfo(pTask, pTask->checkpointingId); if (pTask->info.taskLevel != TASK_LEVEL__SINK) {
if (code != TSDB_CODE_SUCCESS) { code = updateCheckPointInfo(pTask, pTask->checkpointingId);
return code; if (code != TSDB_CODE_SUCCESS) {
return code;
}
} }
// send check point response to upstream task // send check point response to upstream task
if (pTask->info.taskLevel == TASK_LEVEL__SOURCE) { if (pTask->info.taskLevel == TASK_LEVEL__SOURCE) {
code = streamTaskSendCheckpointSourceRsp(pTask); code = streamTaskSendCheckpointSourceRsp(pTask);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册