From e4d2b5bb5e0d82c0843ea4519e3da782396592d8 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Fri, 10 Apr 2020 15:09:37 +0800 Subject: [PATCH] turn on the arbitrator code --- src/inc/tsync.h | 1 + src/vnode/main/src/vnodeMain.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/inc/tsync.h b/src/inc/tsync.h index ea20ceec79..cdc92b2366 100644 --- a/src/inc/tsync.h +++ b/src/inc/tsync.h @@ -99,6 +99,7 @@ extern int tsMaxSyncNum; extern int tsSyncTcpThreads; extern int tsMaxWatchFiles; extern short tsSyncPort; +extern int tsSyncTimer; extern int tsMaxFwdInfo; extern int sDebugFlag; diff --git a/src/vnode/main/src/vnodeMain.c b/src/vnode/main/src/vnodeMain.c index 8d36f59da0..7ee468fa54 100644 --- a/src/vnode/main/src/vnodeMain.c +++ b/src/vnode/main/src/vnodeMain.c @@ -375,7 +375,7 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) { if (num != 2) return TSDB_CODE_INVALID_FILE_FORMAT; if (strcmp(option[0], "arbitratorIp") != 0) return TSDB_CODE_INVALID_FILE_FORMAT; if (arbitratorIp == -1) return TSDB_CODE_INVALID_FILE_FORMAT; - pVnode->syncCfg.arbitratorIp = 0; + pVnode->syncCfg.arbitratorIp = arbitratorIp; int32_t quorum = -1; num = fscanf(fp, "%s %d", option[0], &quorum); -- GitLab