Fixed getSlavePos() to use the SQL thread fields, not the IO thread fields.
authorTim Starling <tstarling@users.mediawiki.org>
Mon, 13 Oct 2008 14:19:25 +0000 (14:19 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Mon, 13 Oct 2008 14:19:25 +0000 (14:19 +0000)
includes/db/Database.php

index da85801..1ca563b 100644 (file)
@@ -1919,7 +1919,7 @@ class Database {
                $res = $this->query( 'SHOW SLAVE STATUS', 'Database::getSlavePos' );
                $row = $this->fetchObject( $res );
                if ( $row ) {
-                       return new MySQLMasterPos( $row->Master_Log_File, $row->Read_Master_Log_Pos );
+                       return new MySQLMasterPos( $row->Relay_Master_Log_File, $row->Exec_master_log_pos );
                } else {
                        return false;
                }