From 7695dbcce776f0429906059244c9b11135dd302c Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Fri, 24 Jun 2022 15:28:01 +0800 Subject: [PATCH] refactor(sync): adjust election timer --- source/dnode/mnode/impl/src/mndSync.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/dnode/mnode/impl/src/mndSync.c b/source/dnode/mnode/impl/src/mndSync.c index b481f417d9..c58ce97588 100644 --- a/source/dnode/mnode/impl/src/mndSync.c +++ b/source/dnode/mnode/impl/src/mndSync.c @@ -198,6 +198,10 @@ int32_t mndInitSync(SMnode *pMnode) { return -1; } + // decrease election timer + setElectTimerMS(pMgmt->sync, 600); + setHeartbeatTimerMS(pMgmt->sync, 300); + mDebug("mnode-sync is opened, id:%" PRId64, pMgmt->sync); return 0; }