not do chkp when pbackend not inited

This commit is contained in:
yihaoDeng 2023-12-15 09:18:37 +08:00
parent bf3bfa4d66
commit 5189f3d15b
1 changed files with 3 additions and 0 deletions

View File

@ -425,6 +425,9 @@ int32_t streamTaskUploadChkp(SStreamTask* pTask, int64_t chkpId, char* taskId) {
if (type == UPLOAD_DISABLE) { if (type == UPLOAD_DISABLE) {
return 0; return 0;
} }
if (pTask->pBackend == NULL) {
return 0;
}
SAsyncUploadArg* arg = taosMemoryCalloc(1, sizeof(SAsyncUploadArg)); SAsyncUploadArg* arg = taosMemoryCalloc(1, sizeof(SAsyncUploadArg));
arg->type = type; arg->type = type;
arg->taskId = taosStrdup(taskId); arg->taskId = taosStrdup(taskId);