fix(stream): clear start task info if no tasks exist.

This commit is contained in:
Haojun Liao 2025-02-20 23:54:06 +08:00
parent bea8fe42db
commit 306f6ebc93
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ int32_t streamMetaStartAllTasks(SStreamMeta* pMeta) {
if (numOfTasks == 0) {
stInfo("vgId:%d no tasks exist, quit from consensus checkpointId", pMeta->vgId);
streamMetaWLock(pMeta);
streamMetaResetStartInfo(&pMeta->startInfo, vgId);
streamMetaWUnLock(pMeta);
return TSDB_CODE_SUCCESS;
}