add config
This commit is contained in:
parent
8e6a51bfe1
commit
142ded06c6
|
@ -894,7 +894,7 @@ static void addConnToPool(void* pool, SCliConn* conn) {
|
||||||
|
|
||||||
conn->heapMissHit = 0;
|
conn->heapMissHit = 0;
|
||||||
|
|
||||||
if (conn->list->size >= 10) {
|
if (conn->list->size >= 2) {
|
||||||
STaskArg* arg = taosMemoryCalloc(1, sizeof(STaskArg));
|
STaskArg* arg = taosMemoryCalloc(1, sizeof(STaskArg));
|
||||||
if (arg == NULL) return;
|
if (arg == NULL) return;
|
||||||
arg->param1 = conn;
|
arg->param1 = conn;
|
||||||
|
@ -2539,12 +2539,13 @@ static FORCE_INLINE void doCloseIdleConn(void* param) {
|
||||||
STaskArg* arg = param;
|
STaskArg* arg = param;
|
||||||
SCliConn* conn = arg->param1;
|
SCliConn* conn = arg->param1;
|
||||||
tDebug("%s conn %p idle, close it", CONN_GET_INST_LABEL(conn), conn);
|
tDebug("%s conn %p idle, close it", CONN_GET_INST_LABEL(conn), conn);
|
||||||
|
conn->task = NULL;
|
||||||
|
taosMemoryFree(arg);
|
||||||
|
|
||||||
int32_t ref = transUnrefCliHandle(conn);
|
int32_t ref = transUnrefCliHandle(conn);
|
||||||
if (ref <= 0) {
|
if (ref <= 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
taosMemoryFree(arg);
|
|
||||||
}
|
}
|
||||||
static FORCE_INLINE void cliPerfLog_schedMsg(SCliReq* pReq, char* label) {
|
static FORCE_INLINE void cliPerfLog_schedMsg(SCliReq* pReq, char* label) {
|
||||||
int32_t code = 0;
|
int32_t code = 0;
|
||||||
|
|
Loading…
Reference in New Issue