Update tglobal.c

This commit is contained in:
dapan1121 2023-03-29 15:51:49 +08:00 committed by GitHub
parent 9952be43f6
commit 8b7622b5e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -1347,15 +1347,9 @@ void taosCleanupCfg() {
} }
} }
extern int32_t scanDebug;
void taosCfgDynamicOptions(const char *option, const char *value) { void taosCfgDynamicOptions(const char *option, const char *value) {
if (strncasecmp(option, "debugFlag", 9) == 0) { if (strncasecmp(option, "debugFlag", 9) == 0) {
int32_t flag = atoi(value); int32_t flag = atoi(value);
if (1 == flag) {
scanDebug = 1;
} else {
scanDebug = 0;
}
taosSetAllDebugFlag(flag, true); taosSetAllDebugFlag(flag, true);
return; return;
} }