mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
update
This commit is contained in:
@@ -1994,13 +1994,14 @@ def setDbSlave(version):
|
||||
|
||||
def getMasterStatus(version=''):
|
||||
|
||||
if status(version) == 'stop':
|
||||
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
|
||||
|
||||
query_status_cmd = 'show slave status'
|
||||
mdb8 = getMdb8Ver()
|
||||
if mw.inArray(mdb8, version):
|
||||
query_status_cmd = 'show replica status'
|
||||
try:
|
||||
if status(version) == 'stop':
|
||||
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
|
||||
|
||||
conf = getConf()
|
||||
content = mw.readFile(conf)
|
||||
|
||||
@@ -2199,6 +2199,8 @@ def setDbSlave(version):
|
||||
|
||||
|
||||
def getMasterStatus(version=''):
|
||||
if status(version) == 'stop':
|
||||
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
|
||||
|
||||
query_status_cmd = 'show slave status'
|
||||
mdb8 = getMdb8Ver()
|
||||
@@ -2206,9 +2208,7 @@ def getMasterStatus(version=''):
|
||||
query_status_cmd = 'show replica status'
|
||||
|
||||
try:
|
||||
if status(version) == 'stop':
|
||||
return mw.returnJson(False, 'MySQL未启动,或正在启动中...!', [])
|
||||
|
||||
|
||||
conf = getConf()
|
||||
content = mw.readFile(conf)
|
||||
master_status = False
|
||||
|
||||
Reference in New Issue
Block a user