revert last commit, use a variable is_mariadb to check gtid mode