Updating GTID based master failover algorithm.
Adding a new parameter use_gtid_auto_pos (default 1)
gtid off || gtid_executed==empty
=> normal failover without gtid
gtid on && gtid_executed && (Auto_Position==1 || gtid_use_auto_position (default 1))
=> gtid failover with auto_pos enabled
else
=> normal failover