fix(stream): fix dead lock.

This commit is contained in:
Haojun Liao 2024-01-02 11:40:29 +08:00
parent b3d8f4e9d6
commit 4368bfb20a
1 changed files with 1 additions and 2 deletions

View File

@ -587,10 +587,9 @@ static void vnodeRestoreFinish(const SSyncFSM *pFsm, const SyncIndex commitIdx)
}
}
} else {
streamMetaWUnLock(pMeta);
vInfo("vgId:%d, sync restore finished, not launch stream tasks since not leader", vgId);
}
streamMetaWUnLock(pMeta);
}
static void vnodeBecomeFollower(const SSyncFSM *pFsm) {