提交 386f184e 编写于 作者: D dapan1121

feat: disable async log

上级 1128b122
...@@ -522,6 +522,7 @@ void taos_init_imp(void) { ...@@ -522,6 +522,7 @@ void taos_init_imp(void) {
if (code) { if (code) {
printf("failed to init memory dbg, error:%s\n", tstrerror(code)); printf("failed to init memory dbg, error:%s\n", tstrerror(code));
} else { } else {
tsAsyncLog = false;
printf("memory dbg enabled\n"); printf("memory dbg enabled\n");
} }
} }
......
...@@ -284,6 +284,7 @@ int mainWindows(int argc, char **argv) { ...@@ -284,6 +284,7 @@ int mainWindows(int argc, char **argv) {
printf("failed to init memory dbg, error:%s\n", tstrerror(code)); printf("failed to init memory dbg, error:%s\n", tstrerror(code));
return code; return code;
} }
tsAsyncLog = false;
printf("memory dbg enabled\n"); printf("memory dbg enabled\n");
} }
#endif #endif
......
...@@ -693,6 +693,7 @@ static int32_t execAlterCmd(char* cmd, char* value, bool* processed) { ...@@ -693,6 +693,7 @@ static int32_t execAlterCmd(char* cmd, char* value, bool* processed) {
qError("failed to init memory dbg, error:%s", tstrerror(code)); qError("failed to init memory dbg, error:%s", tstrerror(code));
return code; return code;
} }
tsAsyncLog = false;
qInfo("memory dbg enabled"); qInfo("memory dbg enabled");
} else if (0 == strcasecmp(cmd, COMMAND_DISABLE_MEM_DEBUG)) { } else if (0 == strcasecmp(cmd, COMMAND_DISABLE_MEM_DEBUG)) {
code = taosMemoryDbgInitRestore(); code = taosMemoryDbgInitRestore();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册