From: Domas Mituzas Date: Wed, 21 Jun 2006 16:47:15 +0000 (+0000) Subject: oops, better skip i/o thread states :) X-Git-Tag: 1.31.0-rc.0~56707 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=a07dac02fdb3a03added6fdbbadca667f5f39065;p=lhc%2Fweb%2Fwiklou.git oops, better skip i/o thread states :) --- diff --git a/includes/Database.php b/includes/Database.php index 7af8bd99d1..fc2d67d77e 100644 --- a/includes/Database.php +++ b/includes/Database.php @@ -1818,7 +1818,13 @@ class Database { * * Relay log I/O thread does not select databases. */ - if ( $row->User == 'system user' && $row->db != '' ) { + if ( $row->User == 'system user' && + $row->State != 'Waiting for master to send event' && + $row->State != 'Connecting to master' && + $row->State != 'Queueing master event to the relay log' && + $row->State != 'Waiting for master update' && + $row->State != 'Requesting binlog dump' + ) { # This is it, return the time (except -ve) if ( $row->Time > 0x7fffffff ) { return false;