From ce324cf4bcd65a7f58ec874d18c35402a47910b2 Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sat, 27 Jul 2024 23:59:15 +0800 Subject: [PATCH] fix:[TD-31017]process return value in client --- source/client/src/clientMsgHandler.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/client/src/clientMsgHandler.c b/source/client/src/clientMsgHandler.c index 73924a4e8e..798c40dd9f 100644 --- a/source/client/src/clientMsgHandler.c +++ b/source/client/src/clientMsgHandler.c @@ -277,7 +277,7 @@ int32_t processUseDbRsp(void* param, SDataBuf* pMsg, int32_t code) { } SUseDbRsp usedbRsp = {0}; - tDeserializeSUseDbRsp(pMsg->pData, pMsg->len, &usedbRsp); + (void)tDeserializeSUseDbRsp(pMsg->pData, pMsg->len, &usedbRsp); if (strlen(usedbRsp.db) == 0) { if (usedbRsp.errCode != 0) { @@ -318,6 +318,7 @@ int32_t processUseDbRsp(void* param, SDataBuf* pMsg, int32_t code) { tstrerror(code1)); } else { (void)catalogUpdateDBVgInfo(pCatalog, output.db, output.dbId, output.dbVgroup); + output.dbVgroup = NULL; } }