fix merge error

This commit is contained in:
xiao-77 2024-11-12 09:48:24 +08:00
parent 8a90ebaa38
commit 281c1e67c2
1 changed files with 38 additions and 39 deletions

View File

@ -660,9 +660,8 @@ static int32_t taosAddClientCfg(SConfig *pCfg) {
CFG_CATEGORY_GLOBAL)); CFG_CATEGORY_GLOBAL));
TAOS_CHECK_RETURN(cfgAddInt64(pCfg, "randErrorScope", tsRandErrScope, 0, INT64_MAX, CFG_SCOPE_BOTH, CFG_DYN_BOTH, TAOS_CHECK_RETURN(cfgAddInt64(pCfg, "randErrorScope", tsRandErrScope, 0, INT64_MAX, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
CFG_CATEGORY_GLOBAL)); CFG_CATEGORY_GLOBAL));
TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "metaCacheMaxSize", tsMetaCacheMaxSize, -1, INT32_MAX, CFG_SCOPE_CLIENT, TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "safetyCheckLevel", tsSafetyCheckLevel, 0, 5, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
CFG_DYN_CLIENT, CFG_CATEGORY_LOCAL)); CFG_CATEGORY_GLOBAL));
tsNumOfRpcThreads = tsNumOfCores / 2; tsNumOfRpcThreads = tsNumOfCores / 2;
tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 2, TSDB_MAX_RPC_THREADS); tsNumOfRpcThreads = TRANGE(tsNumOfRpcThreads, 2, TSDB_MAX_RPC_THREADS);
TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "numOfRpcThreads", tsNumOfRpcThreads, 1, 1024, CFG_SCOPE_BOTH, CFG_DYN_BOTH, TAOS_CHECK_RETURN(cfgAddInt32(pCfg, "numOfRpcThreads", tsNumOfRpcThreads, 1, 1024, CFG_SCOPE_BOTH, CFG_DYN_BOTH,
@ -2845,39 +2844,39 @@ void printConfigNotMatch(SArray *array) {
} }
} }
void printConfigNotMatch(SArray *array) { // void printConfigNotMatch(SArray *array) {
uError( // uError(
"The global configuration parameters in the configuration file do not match those in the cluster. Please " // "The global configuration parameters in the configuration file do not match those in the cluster. Please "
"turn off the forceReadConfigFile option or modify the global configuration parameters that are not " // "turn off the forceReadConfigFile option or modify the global configuration parameters that are not "
"configured."); // "configured.");
int32_t sz = taosArrayGetSize(array); // int32_t sz = taosArrayGetSize(array);
for (int i = 0; i < sz; i++) { // for (int i = 0; i < sz; i++) {
SConfigItem *item = (SConfigItem *)taosArrayGet(array, i); // SConfigItem *item = (SConfigItem *)taosArrayGet(array, i);
switch (item->dtype) { // switch (item->dtype) {
{ // {
case CFG_DTYPE_NONE: // case CFG_DTYPE_NONE:
break; // break;
case CFG_DTYPE_BOOL: // case CFG_DTYPE_BOOL:
uError("config %s in cluster value is:%d", item->name, item->bval); // uError("config %s in cluster value is:%d", item->name, item->bval);
break; // break;
case CFG_DTYPE_INT32: // case CFG_DTYPE_INT32:
uError("config %s in cluster value is:%d", item->name, item->i32); // uError("config %s in cluster value is:%d", item->name, item->i32);
break; // break;
case CFG_DTYPE_INT64: // case CFG_DTYPE_INT64:
uError("config %s in cluster value is:%" PRId64, item->name, item->i64); // uError("config %s in cluster value is:%" PRId64, item->name, item->i64);
break; // break;
case CFG_DTYPE_FLOAT: // case CFG_DTYPE_FLOAT:
case CFG_DTYPE_DOUBLE: // case CFG_DTYPE_DOUBLE:
uError("config %s in cluster value is:%f", item->name, item->fval); // uError("config %s in cluster value is:%f", item->name, item->fval);
break; // break;
case CFG_DTYPE_STRING: // case CFG_DTYPE_STRING:
case CFG_DTYPE_DIR: // case CFG_DTYPE_DIR:
case CFG_DTYPE_LOCALE: // case CFG_DTYPE_LOCALE:
case CFG_DTYPE_CHARSET: // case CFG_DTYPE_CHARSET:
case CFG_DTYPE_TIMEZONE: // case CFG_DTYPE_TIMEZONE:
uError("config %s in cluster value is:%s", item->name, item->str); // uError("config %s in cluster value is:%s", item->name, item->str);
break; // break;
} // }
} // }
} // }
} // }