fix: avoid sync restore repeat called

This commit is contained in:
Shengliang Guan 2022-12-08 17:14:06 +08:00
parent 6f44934fdf
commit 46889e2dc1
1 changed files with 7 additions and 3 deletions

View File

@ -149,9 +149,13 @@ void mndRestoreFinish(const SSyncFSM *pFsm) {
SMnode *pMnode = pFsm->data; SMnode *pMnode = pFsm->data;
if (!pMnode->deploy) { if (!pMnode->deploy) {
mInfo("vgId:1, sync restore finished, and will handle outstanding transactions"); if (pMnode->restored) {
mndTransPullup(pMnode); mInfo("vgId:1, sync restore finished, and will handle outstanding transactions");
mndSetRestored(pMnode, true); mndTransPullup(pMnode);
mndSetRestored(pMnode, true);
} else {
mInfo("vgId:1, sync restore finished, repeat call");
}
} else { } else {
mInfo("vgId:1, sync restore finished"); mInfo("vgId:1, sync restore finished");
} }