fix(stream): ignore the sink task transfer state.

This commit is contained in:
Haojun Liao 2023-07-31 19:23:53 +08:00
parent 3bcc7ed83e
commit 1e680d4df1
1 changed files with 3 additions and 2 deletions

View File

@ -382,10 +382,11 @@ static int32_t streamTransferStateToStreamTask(SStreamTask* pTask) {
return code;
}
if (pTask->info.taskLevel == TASK_LEVEL__SOURCE) {
int32_t level = pTask->info.taskLevel;
if (level == TASK_LEVEL__SOURCE) {
streamTaskFillHistoryFinished(pTask);
streamTaskEndScanWAL(pTask);
} else { // do transfer task operator states.
} else if (level == TASK_LEVEL__AGG) { // do transfer task operator states.
code = streamDoTransferStateToStreamTask(pTask);
if (code != TSDB_CODE_SUCCESS) { // todo handle this
return code;