mirror of https://gitee.com/bigwinds/arangodb
rechecking dbservers before sharding operations
This commit is contained in:
parent
b387ff6289
commit
19c8e77aea
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue