Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 841-847 (lines=7) @@
838
				? $row->Exec_master_log_pos
839
				: $row->Exec_Master_Log_Pos;
840
			// Also fetch the last-applied GTID set (MariaDB)
841
			if ( $this->useGTIDs ) {
842
				$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_slave_pos'", __METHOD__ );
843
				$gtidRow = $this->fetchObject( $res );
844
				$gtidSet = $gtidRow ? $gtidRow->Value : '';
845
			} else {
846
				$gtidSet = '';
847
			}
848
849
			return new MySQLMasterPos( $row->Relay_Master_Log_File, $pos, $gtidSet );
850
		} else {
@@ 866-872 (lines=7) @@
863
864
		if ( $row ) {
865
			// Also fetch the last-written GTID set (MariaDB)
866
			if ( $this->useGTIDs ) {
867
				$res = $this->query( "SHOW GLOBAL VARIABLES LIKE 'gtid_binlog_pos'", __METHOD__ );
868
				$gtidRow = $this->fetchObject( $res );
869
				$gtidSet = $gtidRow ? $gtidRow->Value : '';
870
			} else {
871
				$gtidSet = '';
872
			}
873
874
			return new MySQLMasterPos( $row->File, $row->Position, $gtidSet );
875
		} else {