Also fixed incorrect comment for getGtidCoordinates()
Change-Id: Ie2ce8a8bba230ceb6d068957e5ffeb360c3fe473
$row = $this->fetchObject( $res );
if ( $row ) {
- $pos = isset( $row->Exec_master_log_pos )
- ? $row->Exec_master_log_pos
- : $row->Exec_Master_Log_Pos;
+ $pos = $row->Exec_Master_Log_Pos;
// Also fetch the last-applied GTID set (MariaDB)
if ( $this->useGTIDs ) {
$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_slave_pos'", __METHOD__ );
* @note: this returns false for multi-source replication GTID sets
* @see https://mariadb.com/kb/en/mariadb/gtid
* @see https://dev.mysql.com/doc/refman/5.6/en/replication-gtids-concepts.html
- * @return array Map of (domain => integer position) or false
+ * @return array Map of (domain => integer position); possibly empty
*/
protected function getGtidCoordinates() {
$gtidInfos = [];