fix: add debug

This commit is contained in:
dapan1121 2023-03-28 18:24:26 +08:00
parent def8c9044e
commit 0cbcf624b4
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}