提交 e4d2b5bb 编写于 作者: J Jeff Tao

turn on the arbitrator code

上级 4ecb5e0f
...@@ -99,6 +99,7 @@ extern int tsMaxSyncNum; ...@@ -99,6 +99,7 @@ extern int tsMaxSyncNum;
extern int tsSyncTcpThreads; extern int tsSyncTcpThreads;
extern int tsMaxWatchFiles; extern int tsMaxWatchFiles;
extern short tsSyncPort; extern short tsSyncPort;
extern int tsSyncTimer;
extern int tsMaxFwdInfo; extern int tsMaxFwdInfo;
extern int sDebugFlag; extern int sDebugFlag;
......
...@@ -375,7 +375,7 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) { ...@@ -375,7 +375,7 @@ static int32_t vnodeReadCfg(SVnodeObj *pVnode) {
if (num != 2) return TSDB_CODE_INVALID_FILE_FORMAT; if (num != 2) return TSDB_CODE_INVALID_FILE_FORMAT;
if (strcmp(option[0], "arbitratorIp") != 0) 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; if (arbitratorIp == -1) return TSDB_CODE_INVALID_FILE_FORMAT;
pVnode->syncCfg.arbitratorIp = 0; pVnode->syncCfg.arbitratorIp = arbitratorIp;
int32_t quorum = -1; int32_t quorum = -1;
num = fscanf(fp, "%s %d", option[0], &quorum); num = fscanf(fp, "%s %d", option[0], &quorum);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册