From 9dd3b1b56b6aeb2ccccf8ab2abf698773e9d4b7a Mon Sep 17 00:00:00 2001 From: wangjiaming0909 <604227650@qq.com> Date: Mon, 26 Aug 2024 13:15:10 +0800 Subject: [PATCH] fix create tsma on Windows crash --- source/dnode/mnode/impl/src/mndSma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dnode/mnode/impl/src/mndSma.c b/source/dnode/mnode/impl/src/mndSma.c index 303e86bb82..7467d9bba3 100644 --- a/source/dnode/mnode/impl/src/mndSma.c +++ b/source/dnode/mnode/impl/src/mndSma.c @@ -1845,8 +1845,7 @@ static int32_t mndTSMAGenerateOutputName(const char* tsmaName, char* streamName, static int32_t mndProcessCreateTSMAReq(SRpcMsg* pReq) { #ifdef WINDOWS - terrno = TSDB_CODE_MND_INVALID_PLATFORM; - goto _OVER; + TAOS_RETURN(TSDB_CODE_MND_INVALID_PLATFORM); #endif SMnode * pMnode = pReq->info.node; int32_t code = -1;