Code Duplication    Length = 7-7 lines in 2 locations

includes/libs/rdbms/database/DatabaseMysqlBase.php 2 locations

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