From 1e84358cb9d5123ec160ce54947bcde4f1a1dd6b Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sun, 15 Dec 2024 13:35:16 +0800 Subject: [PATCH] fix precheck --- source/libs/transport/src/thttp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/libs/transport/src/thttp.c b/source/libs/transport/src/thttp.c index dc5fb367ea..951d4f4c60 100644 --- a/source/libs/transport/src/thttp.c +++ b/source/libs/transport/src/thttp.c @@ -457,7 +457,7 @@ static FORCE_INLINE void clientRecvCb(uv_stream_t* handle, ssize_t nread, const } } taosWUnLockLatch(&p->latch); - taosReleaseRef(httpRecvRefMgt, cli->recvBufRid); + TAOS_UNUSED(taosReleaseRef(httpRecvRefMgt, cli->recvBufRid)); } else { tWarn("http-report failed to acquire recv buf since %s", tstrerror(terrno)); } @@ -984,8 +984,8 @@ static void taosFreeHttpRecvHandle(int64_t rid) { if (rid <= 0) { return; } - taosReleaseRef(httpRecvRefMgt, rid); - taosRemoveRef(httpRecvRefMgt, rid); + TAOS_UNUSED(taosReleaseRef(httpRecvRefMgt, rid)); + TAOS_UNUSED(taosRemoveRef(httpRecvRefMgt, rid)); } static int32_t taosGetHttpRecvById(int64_t rid, char** pRecv, int32_t* len) { int32_t code = 0; @@ -1003,7 +1003,7 @@ static int32_t taosGetHttpRecvById(int64_t rid, char** pRecv, int32_t* len) { code = TSDB_CODE_INVALID_PARA; } taosWUnLockLatch(&p->latch); - taosReleaseRef(httpRecvRefMgt, rid); + TAOS_UNUSED(taosReleaseRef(httpRecvRefMgt, rid)); return code; }