feat: disable async log

This commit is contained in:
dapan1121 2023-02-17 17:45:44 +08:00
parent 1128b1222b
commit 386f184ed7
3 changed files with 3 additions and 0 deletions

View File

@ -522,6 +522,7 @@ void taos_init_imp(void) {
if (code) {
printf("failed to init memory dbg, error:%s\n", tstrerror(code));
} else {
tsAsyncLog = false;
printf("memory dbg enabled\n");
}
}

View File

@ -284,6 +284,7 @@ int mainWindows(int argc, char **argv) {
printf("failed to init memory dbg, error:%s\n", tstrerror(code));
return code;
}
tsAsyncLog = false;
printf("memory dbg enabled\n");
}
#endif

View File

@ -693,6 +693,7 @@ static int32_t execAlterCmd(char* cmd, char* value, bool* processed) {
qError("failed to init memory dbg, error:%s", tstrerror(code));
return code;
}
tsAsyncLog = false;
qInfo("memory dbg enabled");
} else if (0 == strcasecmp(cmd, COMMAND_DISABLE_MEM_DEBUG)) {
code = taosMemoryDbgInitRestore();