Update index.py

pull/719/head
dami 1 month ago
parent d054f7f9cd
commit 536c76b000
  1. 2
      plugins/mysql/index.py

@ -2407,7 +2407,7 @@ def getMasterRepSlaveUserCmd(version):
# SHOW REPLICA STATUS; # SHOW REPLICA STATUS;
cmd_status = "show master status" cmd_status = "show master status"
if pk_version.parse(ver) > pk_version.parse("8.0"): if pk_version.parse(version) > pk_version.parse("8.0"):
cmd_status = "show replica status" cmd_status = "show replica status"
mstatus = db.query(cmd_status) mstatus = db.query(cmd_status)
if len(mstatus) == 0: if len(mstatus) == 0:

Loading…
Cancel
Save