fix(stream): fix error in generating checkpoint.
This commit is contained in:
parent
8298f30e56
commit
b03ca31a7f
|
@ -423,17 +423,18 @@ int32_t streamExecForAll(SStreamTask* pTask) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pTask->info.taskLevel == TASK_LEVEL__SINK) {
|
if (pTask->info.taskLevel == TASK_LEVEL__SINK) {
|
||||||
|
ASSERT(pInput->type == STREAM_INPUT__DATA_BLOCK || pInput->type == STREAM_INPUT__CHECKPOINT);
|
||||||
|
|
||||||
if (pInput->type == STREAM_INPUT__DATA_BLOCK) {
|
if (pInput->type == STREAM_INPUT__DATA_BLOCK) {
|
||||||
qDebug("s-task:%s sink task start to sink %d blocks", id, batchSize);
|
qDebug("s-task:%s sink task start to sink %d blocks", id, batchSize);
|
||||||
streamTaskOutputResultBlock(pTask, (SStreamDataBlock*)pInput);
|
streamTaskOutputResultBlock(pTask, (SStreamDataBlock*)pInput);
|
||||||
continue;
|
continue;
|
||||||
}
|
} else { // for sink task, do nothing.
|
||||||
} else {
|
|
||||||
ASSERT(pInput->type == STREAM_INPUT__CHECKPOINT);
|
|
||||||
ASSERT(pTask->status.taskStatus == TASK_STATUS__CK);
|
ASSERT(pTask->status.taskStatus == TASK_STATUS__CK);
|
||||||
pTask->status.taskStatus = TASK_STATUS__CK_READY;
|
pTask->status.taskStatus = TASK_STATUS__CK_READY;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int64_t st = taosGetTimestampMs();
|
int64_t st = taosGetTimestampMs();
|
||||||
qDebug("s-task:%s start to process batch of blocks, num:%d", id, batchSize);
|
qDebug("s-task:%s start to process batch of blocks, num:%d", id, batchSize);
|
||||||
|
|
Loading…
Reference in New Issue