diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index aeeec1d61c..e97523df3d 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -1347,9 +1347,15 @@ void taosCleanupCfg() { } } +extern int32_t scanDebug; void taosCfgDynamicOptions(const char *option, const char *value) { if (strncasecmp(option, "debugFlag", 9) == 0) { int32_t flag = atoi(value); + if (1 == flag) { + scanDebug = 1; + } else { + scanDebug = 0; + } taosSetAllDebugFlag(flag, true); return; }