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;
|
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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue