From 5688ff12c8724824d759747a05ef0b37650f3e6e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 13 Oct 2008 14:19:25 +0000 Subject: [PATCH] Fixed getSlavePos() to use the SQL thread fields, not the IO thread fields. --- includes/db/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index da85801def..1ca563ba54 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -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; } -- 2.20.1