chore: revert
This commit is contained in:
parent
8eb4367d46
commit
0fc1eadeed
|
@ -77,10 +77,6 @@ extern int32_t tsElectInterval;
|
||||||
extern int32_t tsHeartbeatInterval;
|
extern int32_t tsHeartbeatInterval;
|
||||||
extern int32_t tsHeartbeatTimeout;
|
extern int32_t tsHeartbeatTimeout;
|
||||||
|
|
||||||
// dnode
|
|
||||||
extern char tsActive[];
|
|
||||||
extern char tsConnActive[];
|
|
||||||
|
|
||||||
// vnode
|
// vnode
|
||||||
extern int64_t tsVndCommitMaxIntervalMs;
|
extern int64_t tsVndCommitMaxIntervalMs;
|
||||||
|
|
||||||
|
|
|
@ -66,10 +66,6 @@ int32_t tsElectInterval = 25 * 1000;
|
||||||
int32_t tsHeartbeatInterval = 1000;
|
int32_t tsHeartbeatInterval = 1000;
|
||||||
int32_t tsHeartbeatTimeout = 20 * 1000;
|
int32_t tsHeartbeatTimeout = 20 * 1000;
|
||||||
|
|
||||||
// dnode
|
|
||||||
char tsActive[TSDB_ACTIVE_KEY_LEN] = {0};
|
|
||||||
char tsConnActive[TSDB_CONN_ACTIVE_KEY_LEN] = {0};
|
|
||||||
|
|
||||||
// vnode
|
// vnode
|
||||||
int64_t tsVndCommitMaxIntervalMs = 600 * 1000;
|
int64_t tsVndCommitMaxIntervalMs = 600 * 1000;
|
||||||
|
|
||||||
|
@ -494,9 +490,6 @@ static int32_t taosAddServerCfg(SConfig *pCfg) {
|
||||||
if (cfgAddInt64(pCfg, "mndSdbWriteDelta", tsMndSdbWriteDelta, 20, 10000, 0) != 0) return -1;
|
if (cfgAddInt64(pCfg, "mndSdbWriteDelta", tsMndSdbWriteDelta, 20, 10000, 0) != 0) return -1;
|
||||||
if (cfgAddInt64(pCfg, "mndLogRetention", tsMndLogRetention, 500, 10000, 0) != 0) return -1;
|
if (cfgAddInt64(pCfg, "mndLogRetention", tsMndLogRetention, 500, 10000, 0) != 0) return -1;
|
||||||
|
|
||||||
if (cfgAddString(pCfg, "activeCode", tsActive, 0) != 0) return -1;
|
|
||||||
if (cfgAddString(pCfg, "cActiveCode", tsConnActive, 0) != 0) return -1;
|
|
||||||
|
|
||||||
if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, 0) != 0) return -1;
|
if (cfgAddBool(pCfg, "monitor", tsEnableMonitor, 0) != 0) return -1;
|
||||||
if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 200000, 0) != 0) return -1;
|
if (cfgAddInt32(pCfg, "monitorInterval", tsMonitorInterval, 1, 200000, 0) != 0) return -1;
|
||||||
if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, 0) != 0) return -1;
|
if (cfgAddString(pCfg, "monitorFqdn", tsMonitorFqdn, 0) != 0) return -1;
|
||||||
|
@ -892,9 +885,6 @@ static int32_t taosSetServerCfg(SConfig *pCfg) {
|
||||||
tsMndSdbWriteDelta = cfgGetItem(pCfg, "mndSdbWriteDelta")->i64;
|
tsMndSdbWriteDelta = cfgGetItem(pCfg, "mndSdbWriteDelta")->i64;
|
||||||
tsMndLogRetention = cfgGetItem(pCfg, "mndLogRetention")->i64;
|
tsMndLogRetention = cfgGetItem(pCfg, "mndLogRetention")->i64;
|
||||||
|
|
||||||
tstrncpy(tsActive, cfgGetItem(pCfg, "activeCode")->str, sizeof(tsActive));
|
|
||||||
tstrncpy(tsConnActive, cfgGetItem(pCfg, "cActiveCode")->str, sizeof(tsConnActive));
|
|
||||||
|
|
||||||
tsStartUdfd = cfgGetItem(pCfg, "udf")->bval;
|
tsStartUdfd = cfgGetItem(pCfg, "udf")->bval;
|
||||||
tstrncpy(tsUdfdResFuncs, cfgGetItem(pCfg, "udfdResFuncs")->str, sizeof(tsUdfdResFuncs));
|
tstrncpy(tsUdfdResFuncs, cfgGetItem(pCfg, "udfdResFuncs")->str, sizeof(tsUdfdResFuncs));
|
||||||
tstrncpy(tsUdfdLdLibPath, cfgGetItem(pCfg, "udfdLdLibPath")->str, sizeof(tsUdfdLdLibPath));
|
tstrncpy(tsUdfdLdLibPath, cfgGetItem(pCfg, "udfdLdLibPath")->str, sizeof(tsUdfdLdLibPath));
|
||||||
|
@ -937,10 +927,6 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
|
||||||
tsAsyncLog = cfgGetItem(pCfg, "asyncLog")->bval;
|
tsAsyncLog = cfgGetItem(pCfg, "asyncLog")->bval;
|
||||||
} else if (strcasecmp("assert", name) == 0) {
|
} else if (strcasecmp("assert", name) == 0) {
|
||||||
tsAssert = cfgGetItem(pCfg, "assert")->bval;
|
tsAssert = cfgGetItem(pCfg, "assert")->bval;
|
||||||
} else if (strcasecmp("activeCode", name) == 0) {
|
|
||||||
SConfigItem *pActiveItem = cfgGetItem(pCfg, "activeCode");
|
|
||||||
snprintf(tsActive, sizeof(tsActive), "%s", pActiveItem->str);
|
|
||||||
cfgSetItem(pCfg, "activeCode", tsActive, pActiveItem->stype);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -960,12 +946,7 @@ int32_t taosSetCfg(SConfig *pCfg, char *name) {
|
||||||
cDebugFlag = cfgGetItem(pCfg, "cDebugFlag")->i32;
|
cDebugFlag = cfgGetItem(pCfg, "cDebugFlag")->i32;
|
||||||
} else if (strcasecmp("crashReporting", name) == 0) {
|
} else if (strcasecmp("crashReporting", name) == 0) {
|
||||||
tsEnableCrashReport = cfgGetItem(pCfg, "crashReporting")->bval;
|
tsEnableCrashReport = cfgGetItem(pCfg, "crashReporting")->bval;
|
||||||
} else if (strcasecmp("cActiveCode", name) == 0) {
|
|
||||||
SConfigItem *pActiveItem = cfgGetItem(pCfg, "cActiveCode");
|
|
||||||
snprintf(tsConnActive, sizeof(tsConnActive), "%s", pActiveItem->str);
|
|
||||||
cfgSetItem(pCfg, "cActiveCode", tsActive, pActiveItem->stype);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'd': {
|
case 'd': {
|
||||||
|
|
Loading…
Reference in New Issue