add bg thread

This commit is contained in:
yihaoDeng 2023-11-08 17:11:11 +08:00
parent 76fcc49c6d
commit 2de5c4a97d
1 changed files with 2 additions and 7 deletions

View File

@ -331,9 +331,8 @@ int32_t streamSaveAllTaskStatus(SStreamMeta* pMeta, SStreamTask* p, int64_t chec
return code;
}
int32_t streamTaskBuildCheckpointImpl(void* arg) {
int32_t streamTaskBuildCheckpoint(SStreamTask* pTask) {
int32_t code = 0;
SStreamTask* pTask = arg;
// check for all tasks, and do generate the vnode-wide checkpoint data.
SStreamMeta* pMeta = pTask->pMeta;
// int32_t remain = atomic_sub_fetch_32(&pMeta->chkptNotReadyTasks, 1);
@ -373,10 +372,6 @@ int32_t streamTaskBuildCheckpointImpl(void* arg) {
return code;
}
int32_t streamTaskBuildCheckpoint(SStreamTask* pTask) {
int32_t code = 0;
return streamMetaAsyncExec(pTask->pMeta, streamTaskBuildCheckpointImpl, pTask, NULL);
}
// static int64_t kBlockSize = 64 * 1024;
// static int sendCheckpointToS3(char* id, SArray* fileList){