This commit is contained in:
Jorge Rodriguez (A.K.A. Tiriel) 2024-05-02 20:25:02 -03:00 committed by GitHub
commit 7ec57a546c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 324 additions and 2 deletions

View file

@ -12,3 +12,7 @@ from ansible_collections.community.mysql.plugins.module_utils.version import Loo
def uses_replica_terminology(cursor):
"""Checks if REPLICA must be used instead of SLAVE"""
return LooseVersion(get_server_version(cursor)) >= LooseVersion('8.0.22')
def supports_gtid_only(cursor):
"""The GTID_ONLY option is supported since MySQL 8.0.27"""
return LooseVersion(get_server_version(cursor)) >= LooseVersion('8.0.27')