From c6e9b8c0fa04c9ed4e64f8f910feac27d73925ae Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Wed, 7 Dec 2022 16:27:20 +0800 Subject: [PATCH] enh: add tassert funcs --- include/os/osSystem.h | 2 +- source/dnode/mgmt/node_mgmt/src/dmMgmt.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/os/osSystem.h b/include/os/osSystem.h index dd1c5cd204..31ec513fca 100644 --- a/include/os/osSystem.h +++ b/include/os/osSystem.h @@ -46,7 +46,7 @@ void taosSetTerminalMode(); int32_t taosGetOldTerminalMode(); void taosResetTerminalMode(); -#if defined(LINUX) +#if !defined(WINDOWS) #define taosPrintTrace(flags, level, dflag) \ { \ void* array[100]; \ diff --git a/source/dnode/mgmt/node_mgmt/src/dmMgmt.c b/source/dnode/mgmt/node_mgmt/src/dmMgmt.c index c3f5313f7b..02a268afda 100644 --- a/source/dnode/mgmt/node_mgmt/src/dmMgmt.c +++ b/source/dnode/mgmt/node_mgmt/src/dmMgmt.c @@ -103,8 +103,6 @@ int32_t dmInitDnode(SDnode *pDnode) { goto _OVER; } - tAssert(0, ""); - pDnode->wrappers[DNODE].func = dmGetMgmtFunc(); pDnode->wrappers[MNODE].func = mmGetMgmtFunc(); pDnode->wrappers[VNODE].func = vmGetMgmtFunc(); -- GitLab