mysql_replication: fix failing when using primary_use_gtid with replica_ or slave_pos (#336)

This commit is contained in:
Andrew Klychkov 2022-04-21 18:43:08 +03:00 committed by GitHub
parent 641894e6e8
commit 450cb19027
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

View file

@ -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)