From 0cbcf624b4043771bcb01f44bfc1209013ce6880 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 28 Mar 2023 18:24:26 +0800 Subject: [PATCH] fix: add debug --- source/common/src/tglobal.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; }