mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -2407,7 +2407,7 @@ def getMasterRepSlaveUserCmd(version):
|
||||
# SHOW REPLICA 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"
|
||||
mstatus = db.query(cmd_status)
|
||||
if len(mstatus) == 0:
|
||||
|
||||
Reference in New Issue
Block a user