Skip to content

Commit

Permalink
session_idle_ms was processed in us
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Oct 25, 2016
1 parent d677a39 commit eab9266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MySQL_Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ void MySQL_Thread::run() {
if (myds->myds_type==MYDS_FRONTEND && myds->sess) {
if (myds->DSS==STATE_SLEEP && myds->sess->status==WAITING_CLIENT_DATA) {
unsigned long long _tmp_idle = mypolls.last_recv[n] > mypolls.last_sent[n] ? mypolls.last_recv[n] : mypolls.last_sent[n] ;
if (_tmp_idle < curtime - mysql_thread___session_idle_ms) {
if (_tmp_idle < ( (curtime > mysql_thread___session_idle_ms * 1000) ? (curtime - mysql_thread___session_idle_ms * 1000) : 0)) {
if (myds->sess->client_myds == myds && myds->PSarrayOUT->len==0 && (myds->queueOUT.head - myds->queueOUT.tail)==0 ) { // extra check
unsigned int j;
int conns=0;
Expand Down

0 comments on commit eab9266

Please sign in to comment.