fix(stream): fix invalid read bug.

This commit is contained in:
Haojun Liao 2023-07-10 09:55:29 +08:00
parent 4f534ce6e9
commit ed1181a1d1
1 changed files with 3 additions and 1 deletions

View File

@ -486,14 +486,16 @@ int32_t streamExecForAll(SStreamTask* pTask) {
qDebug("s-task:%s batch of input blocks exec end, elapsed time:%.2fs, result size:%.2fMiB, numOfBlocks:%d", qDebug("s-task:%s batch of input blocks exec end, elapsed time:%.2fs, result size:%.2fMiB, numOfBlocks:%d",
id, el, resSize / 1048576.0, totalBlocks); id, el, resSize / 1048576.0, totalBlocks);
int32_t type = pInput->type;
streamFreeQitem(pInput); streamFreeQitem(pInput);
// do nothing after sync executor state to storage backend, untill the vnode-level checkpoint is completed. // do nothing after sync executor state to storage backend, untill the vnode-level checkpoint is completed.
if (pInput->type == STREAM_INPUT__CHECKPOINT) { if (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;
} }
} }
} }