提交 e7646660 编写于 作者: S Shengliang Guan

fix: return errorcode if sync stop

上级 9da39891
......@@ -341,7 +341,7 @@ void mndSyncCheckTimeout(SMnode *pMnode) {
curSec - pMgmt->transSec);
}
} else {
mTrace("check sync timeout msg, no trans waiting for confirm");
// mTrace("check sync timeout msg, no trans waiting for confirm");
}
taosThreadMutexUnlock(&pMgmt->lock);
}
......@@ -422,6 +422,7 @@ void mndSyncStop(SMnode *pMnode) {
mInfo("vgId:1, is stopped and post sem, trans:%d", pMgmt->transId);
pMgmt->transId = 0;
pMgmt->transSec = 0;
pMgmt->errCode = TSDB_CODE_APP_IS_STOPPING;
tsem_post(&pMgmt->syncSem);
}
taosThreadMutexUnlock(&pMgmt->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册