|
@@ 829-835 (lines=7) @@
|
| 826 |
|
? $row->Exec_master_log_pos |
| 827 |
|
: $row->Exec_Master_Log_Pos; |
| 828 |
|
// Also fetch the last-applied GTID set (MariaDB) |
| 829 |
|
if ( $this->useGTIDs ) { |
| 830 |
|
$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_slave_pos'", __METHOD__ ); |
| 831 |
|
$gtidRow = $this->fetchObject( $res ); |
| 832 |
|
$gtidSet = $gtidRow ? $gtidRow->Value : ''; |
| 833 |
|
} else { |
| 834 |
|
$gtidSet = ''; |
| 835 |
|
} |
| 836 |
|
|
| 837 |
|
return new MySQLMasterPos( $row->Relay_Master_Log_File, $pos, $gtidSet ); |
| 838 |
|
} else { |
|
@@ 854-860 (lines=7) @@
|
| 851 |
|
|
| 852 |
|
if ( $row ) { |
| 853 |
|
// Also fetch the last-written GTID set (MariaDB) |
| 854 |
|
if ( $this->useGTIDs ) { |
| 855 |
|
$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_binlog_pos'", __METHOD__ ); |
| 856 |
|
$gtidRow = $this->fetchObject( $res ); |
| 857 |
|
$gtidSet = $gtidRow ? $gtidRow->Value : ''; |
| 858 |
|
} else { |
| 859 |
|
$gtidSet = ''; |
| 860 |
|
} |
| 861 |
|
|
| 862 |
|
return new MySQLMasterPos( $row->File, $row->Position, $gtidSet ); |
| 863 |
|
} else { |