1
0
Fork 0

rechecking dbservers before sharding operations

This commit is contained in:
hkernbach 2016-09-23 10:21:20 +02:00
parent b387ff6289
commit 19c8e77aea
1 changed files with 55 additions and 51 deletions

View File

@ -99,6 +99,8 @@
var obj = {};
var array = [];
self.dbServers[0].fetch({
success: function () {
self.dbServers[0].each(function (db) {
if (db.get('name') !== fromServer) {
obj[db.get('name')] = {
@ -142,7 +144,7 @@
buttons.push(
window.modalView.createSuccessButton(
'Move',
this.confirmMoveShards.bind(this, dbName, collectionName, shardName, fromServer)
self.confirmMoveShards.bind(this, dbName, collectionName, shardName, fromServer)
)
);
@ -152,6 +154,8 @@
buttons,
tableContent
);
}
});
},
confirmMoveShards: function (dbName, collectionName, shardName, fromServer) {