From 6a7cee7687a08a4bf96a08fa19ff659abe8c3c9f Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 10 Aug 2024 18:55:03 +0800 Subject: [PATCH] refactor errno code --- source/libs/transport/src/transCli.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 91318c2972..2cc89a2609 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -1161,7 +1161,7 @@ void cliSendBatch(SCliConn* pConn) { if (wb == NULL) { code = TSDB_CODE_OUT_OF_MEMORY; tError("%s conn %p failed to send batch msg since:%s", CONN_GET_INST_LABEL(pConn), pConn, tstrerror(code)); - goto _except; + goto _exception; } int i = 0; @@ -1177,7 +1177,7 @@ void cliSendBatch(SCliConn* pConn) { if (pMsg->pCont == NULL) { code = TSDB_CODE_OUT_OF_BUFFER; tError("%s conn %p failed to send batch msg since:%s", CONN_GET_INST_LABEL(pConn), pConn, tstrerror(code)); - goto _except; + goto _exception; } pMsg->contLen = 0; } @@ -1215,7 +1215,7 @@ void cliSendBatch(SCliConn* pConn) { if (req == NULL) { code = TSDB_CODE_OUT_OF_MEMORY; tError("%s conn %p failed to send batch msg since:%s", CONN_GET_INST_LABEL(pConn), pConn, tstrerror(code)); - goto _except; + goto _exception; } req->data = pConn; tDebug("%s conn %p start to send batch msg, batch size:%d, msgLen:%d", CONN_GET_INST_LABEL(pConn), pConn, @@ -1224,13 +1224,13 @@ void cliSendBatch(SCliConn* pConn) { code = uv_write(req, (uv_stream_t*)pConn->stream, wb, wLen, cliSendBatchCb); if (code != 0) { tDebug("%s conn %p failed to to send batch msg since %s", CONN_GET_INST_LABEL(pConn), pConn, uv_err_name(code)); - goto _except; + goto _exception; } taosMemoryFree(wb); return; -_except: +_exception: cliDestroyBatch(pBatch); taosMemoryFree(wb); pConn->pBatch = NULL;