From 854120c4358b08d0f37576ec7afaaee745099dde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 14 Oct 2016 16:02:17 +0000 Subject: [PATCH] variable session_idle_ms is computed --- lib/MySQL_Thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Thread.cpp b/lib/MySQL_Thread.cpp index c27a6a86d..3aca49e34 100644 --- a/lib/MySQL_Thread.cpp +++ b/lib/MySQL_Thread.cpp @@ -1934,7 +1934,7 @@ __run_skip_1: if (myds) { //if (GloMTH->num_threads >= MIN_THREADS_FOR_MAINTENANCE && idle_maintenance_thread==false) { // here we try to move it to the maintenance thread - if (mypolls.last_recv[n] < curtime - 1000000) { + if (mypolls.last_recv[n] < curtime - mysql_thread___session_idle_ms) { if (myds->myds_type==MYDS_FRONTEND && myds->sess) { if (myds->sess->client_myds == myds) { // extra check if (myds->DSS==STATE_SLEEP && myds->sess->status==WAITING_CLIENT_DATA) {