|
@@ 849-855 (lines=7) @@
|
| 846 |
|
? $row->Exec_master_log_pos |
| 847 |
|
: $row->Exec_Master_Log_Pos; |
| 848 |
|
// Also fetch the last-applied GTID set (MariaDB) |
| 849 |
|
if ( $this->useGTIDs ) { |
| 850 |
|
$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_slave_pos'", __METHOD__ ); |
| 851 |
|
$gtidRow = $this->fetchObject( $res ); |
| 852 |
|
$gtidSet = $gtidRow ? $gtidRow->Value : ''; |
| 853 |
|
} else { |
| 854 |
|
$gtidSet = ''; |
| 855 |
|
} |
| 856 |
|
|
| 857 |
|
return new MySQLMasterPos( $row->Relay_Master_Log_File, $pos, $gtidSet ); |
| 858 |
|
} else { |
|
@@ 874-880 (lines=7) @@
|
| 871 |
|
|
| 872 |
|
if ( $row ) { |
| 873 |
|
// Also fetch the last-written GTID set (MariaDB) |
| 874 |
|
if ( $this->useGTIDs ) { |
| 875 |
|
$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_binlog_pos'", __METHOD__ ); |
| 876 |
|
$gtidRow = $this->fetchObject( $res ); |
| 877 |
|
$gtidSet = $gtidRow ? $gtidRow->Value : ''; |
| 878 |
|
} else { |
| 879 |
|
$gtidSet = ''; |
| 880 |
|
} |
| 881 |
|
|
| 882 |
|
return new MySQLMasterPos( $row->File, $row->Position, $gtidSet ); |
| 883 |
|
} else { |