diff --git a/include/common/tglobal.h b/include/common/tglobal.h index 56a258b01e..0bd15c3418 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -49,8 +49,8 @@ extern char tsLocalEp[]; extern char tsVersionName[]; extern uint16_t tsServerPort; extern int32_t tsVersion; -int32_t configVersion; -int32_t configInited; +extern int32_t tsConfigVersion; +extern int32_t tsConfigInited; extern int32_t tsStatusInterval; extern int32_t tsNumOfSupportVnodes; extern char tsEncryptAlgorithm[]; diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index c83e3e8db2..2919c2cb9f 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -43,8 +43,8 @@ char tsLocalEp[TSDB_EP_LEN] = {0}; // Local End Point, hostname:port char tsVersionName[16] = "community"; uint16_t tsServerPort = 6030; int32_t tsVersion = 30000000; -int32_t configVersion = 0; -int32_t configInited = 0; +int32_t tsConfigVersion = 0; +int32_t tsConfigInited = 0; int32_t tsStatusInterval = 1; // second int32_t tsNumOfSupportVnodes = 256; char tsEncryptAlgorithm[16] = {0}; @@ -649,7 +649,6 @@ static int32_t taosAddClientCfg(SConfig *pCfg) { TAOS_CHECK_RETURN( cfgAddBool(pCfg, "crashReporting", tsEnableCrashReport, CFG_SCOPE_BOTH, CFG_DYN_BOTH, CFG_CATEGORY_GLOBAL)); TAOS_CHECK_RETURN(cfgAddInt64(pCfg, "queryMaxConcurrentTables", tsQueryMaxConcurrentTables, INT64_MIN, INT64_MAX, -<<<<<<< HEAD CFG_SCOPE_CLIENT, CFG_DYN_NONE, CFG_CATEGORY_LOCAL)); TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "metaCacheMaxSize", tsMetaCacheMaxSize, -1, INT32_MAX, CFG_SCOPE_CLIENT, CFG_DYN_CLIENT, CFG_CATEGORY_LOCAL)); diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index bda9dc3944..f21f6a820f 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -287,7 +287,7 @@ void dmSendConfigReq(SDnodeMgmt *pMgmt) { int32_t code = 0; SConfigReq req = {0}; - req.cver = configVersion; + req.cver = tsConfigVersion; dDebug("send config req to mnode, configVersion:%d", req.cver); int32_t contLen = tSerializeSConfigReq(NULL, 0, &req); diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c index 9c6cd4fdd6..d160f6584c 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmWorker.c @@ -57,7 +57,7 @@ static void *dmConfigThreadFp(void *param) { while (1) { taosMsleep(200); - if (pMgmt->pData->dropped || pMgmt->pData->stopped || configInited) break; + if (pMgmt->pData->dropped || pMgmt->pData->stopped || tsConfigInited) break; int64_t curTime = taosGetTimestampMs(); if (curTime < lastTime) lastTime = curTime;