mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-19 00:41:31 -07:00
mysql_replication: fix failing when using primary_use_gtid with replica_ or slave_pos (#336)
This commit is contained in:
parent
641894e6e8
commit
450cb19027
3 changed files with 5 additions and 0 deletions
|
@ -532,6 +532,8 @@ def main():
|
|||
replica_term = 'REPLICA'
|
||||
else:
|
||||
replica_term = 'SLAVE'
|
||||
if primary_use_gtid == 'replica_pos':
|
||||
primary_use_gtid = 'slave_pos'
|
||||
|
||||
if mode == 'getprimary':
|
||||
status = get_primary_status(cursor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue