add config

This commit is contained in:
yihaoDeng 2024-10-10 09:59:40 +08:00
parent 10de831153
commit aba70c79e1
1 changed files with 3 additions and 3 deletions

View File

@ -2542,8 +2542,6 @@ static FORCE_INLINE void doCloseIdleConn(void* param) {
int32_t ref = transUnrefCliHandle(conn); int32_t ref = transUnrefCliHandle(conn);
if (ref <= 0) { if (ref <= 0) {
conn->task = NULL;
taosMemoryFree(arg);
return; return;
} }
taosMemoryFree(arg); taosMemoryFree(arg);
@ -2964,8 +2962,10 @@ int32_t transUnrefCliHandle(void* handle) {
if (handle == NULL) { if (handle == NULL) {
return 0; return 0;
} }
int32_t ref = 0;
SCliConn* conn = (SCliConn*)handle; SCliConn* conn = (SCliConn*)handle;
int32_t ref = conn->ref--; conn->ref--;
ref = conn->ref;
tTrace("%s conn %p ref:%d", CONN_GET_INST_LABEL(conn), conn, conn->ref); tTrace("%s conn %p ref:%d", CONN_GET_INST_LABEL(conn), conn, conn->ref);
if (conn->ref == 0) { if (conn->ref == 0) {