fix: avoid sync restore repeat called
This commit is contained in:
parent
6f44934fdf
commit
46889e2dc1
|
@ -149,9 +149,13 @@ void mndRestoreFinish(const SSyncFSM *pFsm) {
|
|||
SMnode *pMnode = pFsm->data;
|
||||
|
||||
if (!pMnode->deploy) {
|
||||
mInfo("vgId:1, sync restore finished, and will handle outstanding transactions");
|
||||
mndTransPullup(pMnode);
|
||||
mndSetRestored(pMnode, true);
|
||||
if (pMnode->restored) {
|
||||
mInfo("vgId:1, sync restore finished, and will handle outstanding transactions");
|
||||
mndTransPullup(pMnode);
|
||||
mndSetRestored(pMnode, true);
|
||||
} else {
|
||||
mInfo("vgId:1, sync restore finished, repeat call");
|
||||
}
|
||||
} else {
|
||||
mInfo("vgId:1, sync restore finished");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue