mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -2183,7 +2183,7 @@ def getSlaveList(version=''):
|
||||
def getSlaveSyncCmd(version=''):
|
||||
root = mw.getRunDir()
|
||||
cmd = 'cd ' + root + ' && python3 ' + root + \
|
||||
'/plugins/mariadb/index.py do_full_sync {"db":"all"}'
|
||||
'/plugins/mariadb/index.py do_full_sync {"db":"all","sign":""}'
|
||||
return mw.returnJson(True, 'ok', cmd)
|
||||
|
||||
|
||||
@@ -2423,9 +2423,6 @@ def asyncTmpfile():
|
||||
|
||||
def writeDbSyncStatus(data):
|
||||
path = asyncTmpfile()
|
||||
# status_data['code'] = 1
|
||||
# status_data['msg'] = '主服务器备份完成...'
|
||||
# status_data['progress'] = 30
|
||||
mw.writeFile(path, json.dumps(data))
|
||||
|
||||
|
||||
|
||||
@@ -1681,6 +1681,11 @@ function getFullSyncStatus(db){
|
||||
var rdata = $.parseJSON(data.data);
|
||||
var rsource = rdata.data;
|
||||
// console.log(rdata);
|
||||
|
||||
if (db == 'ALL' && rsource.length>1){
|
||||
layer.msg("多主不支持该模式!",{icon:2});
|
||||
return;
|
||||
}
|
||||
|
||||
var dataSource = '';
|
||||
if (rsource.length>1){
|
||||
|
||||
Reference in New Issue
Block a user