From 386f184ed772ea759287cd0a1d5d6dd941489c95 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Fri, 17 Feb 2023 17:45:44 +0800 Subject: [PATCH] feat: disable async log --- source/client/src/clientEnv.c | 1 + source/dnode/mgmt/exe/dmMain.c | 1 + source/libs/command/src/command.c | 1 + 3 files changed, 3 insertions(+) diff --git a/source/client/src/clientEnv.c b/source/client/src/clientEnv.c index e0d3727894..532505fe7d 100644 --- a/source/client/src/clientEnv.c +++ b/source/client/src/clientEnv.c @@ -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"); } } diff --git a/source/dnode/mgmt/exe/dmMain.c b/source/dnode/mgmt/exe/dmMain.c index 8476efcd41..d3cffaa185 100644 --- a/source/dnode/mgmt/exe/dmMain.c +++ b/source/dnode/mgmt/exe/dmMain.c @@ -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 diff --git a/source/libs/command/src/command.c b/source/libs/command/src/command.c index 95fedb9293..886eb8f387 100644 --- a/source/libs/command/src/command.c +++ b/source/libs/command/src/command.c @@ -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();