fix some errors.
This commit is contained in:
parent
281c1e67c2
commit
9758cd7825
|
@ -660,8 +660,7 @@ static int32_t taosAddClientCfg(SConfig *pCfg) {
|
|||
CFG_CATEGORY_GLOBAL));
|
||||
TAOS_CHECK_RETURN(cfgAddInt64(pCfg, "randErrorScope", tsRandErrScope, 0, INT64_MAX, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
|
||||
CFG_CATEGORY_GLOBAL));
|
||||
TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "safetyCheckLevel", tsSafetyCheckLevel, 0, 5, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
|
||||
CFG_CATEGORY_GLOBAL));
|
||||
TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "safetyCheckLevel", tsSafetyCheckLevel, 0, 5, CFG_SCOPE_BOTH, CFG_DYN_BOTH,CFG_CATEGORY_GLOBAL));
|
||||
tsNumOfRpcThreads = tsNumOfCores / 2;
|
||||
tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 2, TSDB_MAX_RPC_THREADS);
|
||||
TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "numOfRpcThreads", tsNumOfRpcThreads, 1, 1024, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
|
||||
|
@ -1948,11 +1947,6 @@ int32_t taosInitCfg(const char *cfgDir, const char **envCmd, const char *envFile
|
|||
TAOS_CHECK_GOTO(taosSetAllDebugFlag(tsCfg, pItem->i32), &lino, _exit);
|
||||
|
||||
cfgDumpCfg(tsCfg, tsc, false);
|
||||
if (!tsc) {
|
||||
if ((code = persistLocalConfig(tsDataDir)) != 0) {
|
||||
goto _exit;
|
||||
}
|
||||
}
|
||||
TAOS_CHECK_GOTO(taosCheckGlobalCfg(), &lino, _exit);
|
||||
|
||||
_exit:
|
||||
|
|
|
@ -66,6 +66,7 @@ int32_t dmProcessCreateEncryptKeyReq(SDnodeMgmt *pMgmt, SRpcMsg *pMsg);
|
|||
// dmWorker.c
|
||||
int32_t dmPutNodeMsgToMgmtQueue(SDnodeMgmt *pMgmt, SRpcMsg *pMsg);
|
||||
int32_t dmStartStatusThread(SDnodeMgmt *pMgmt);
|
||||
int32_t dmStartConfigThread(SDnodeMgmt *pMgmt);
|
||||
int32_t dmStartStatusInfoThread(SDnodeMgmt *pMgmt);
|
||||
void dmStopStatusThread(SDnodeMgmt *pMgmt);
|
||||
void dmStopStatusInfoThread(SDnodeMgmt *pMgmt);
|
||||
|
|
|
@ -308,14 +308,14 @@ static void dmProcessConfigRsp(SDnodeMgmt *pMgmt, SRpcMsg *pRsp) {
|
|||
} else {
|
||||
// log the difference configurations
|
||||
printConfigNotMatch(configRsp.array);
|
||||
goto _exit;
|
||||
}
|
||||
goto _exit;
|
||||
}
|
||||
if (!configRsp.isVersionVerified) {
|
||||
|
||||
persistGlobalConfig(cfgGetGlobalCfg(tsCfg), pMgmt->path, configRsp.cver);
|
||||
}
|
||||
}
|
||||
persistLocalConfig(pMgmt->path);
|
||||
}
|
||||
_exit:
|
||||
tFreeSConfigRsp(&configRsp);
|
||||
|
|
|
@ -23,6 +23,10 @@ static int32_t dmStartMgmt(SDnodeMgmt *pMgmt) {
|
|||
if ((code = dmStartStatusThread(pMgmt)) != 0) {
|
||||
return code;
|
||||
}
|
||||
|
||||
if ((code = dmStartConfigThread(pMgmt)) != 0) {
|
||||
return code;
|
||||
}
|
||||
if ((code = dmStartStatusInfoThread(pMgmt)) != 0) {
|
||||
return code;
|
||||
}
|
||||
|
|
|
@ -960,6 +960,8 @@ static int32_t mndProcessConfigReq(SRpcMsg *pReq) {
|
|||
code = contLen;
|
||||
goto _OVER;
|
||||
}
|
||||
pReq->info.rspLen = contLen;
|
||||
pReq->info.rsp = pHead;
|
||||
_OVER:
|
||||
|
||||
mndReleaseDnode(pMnode, pDnode);
|
||||
|
|
Loading…
Reference in New Issue