From fabbe612dc62e2b8f18866f0e45ad0454a4faf91 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 30 Aug 2023 13:38:45 +0800 Subject: [PATCH] fix log error --- source/libs/transport/src/transCli.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index cfdc5b5e8b..8aefb0ca12 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -2166,10 +2166,12 @@ static void cliSchedMsgToNextNode(SCliMsg* pMsg, SCliThrd* pThrd) { if (rpcDebugFlag & DEBUG_DEBUG) { STraceId* trace = &pMsg->msg.info.traceId; - char tbuf[256] = {0}; + char* tbuf = taosMemoryCalloc(1, TSDB_FQDN_LEN * 5); + EPSET_DEBUG_STR(&pCtx->epSet, tbuf); tGDebug("%s retry on next node,use:%s, step: %d,timeout:%" PRId64 "", transLabel(pThrd->pTransInst), tbuf, pCtx->retryStep, pCtx->retryNextInterval); + taosMemoryFree(tbuf); } STaskArg* arg = taosMemoryMalloc(sizeof(STaskArg));