mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
This commit is contained in:
commit
cbcce38fa0
|
@ -69,6 +69,10 @@
|
|||
return shortName;
|
||||
},
|
||||
|
||||
getDatabaseShortName: function (id) {
|
||||
return this.getCoordinatorShortName(id);
|
||||
},
|
||||
|
||||
getDatabaseServerId: function (shortname) {
|
||||
var id;
|
||||
if (window.clusterHealth) {
|
||||
|
|
|
@ -186,14 +186,15 @@
|
|||
async: true,
|
||||
success: function (data) {
|
||||
if (data.id) {
|
||||
arangoHelper.arangoNotification('Shard ' + shardName + ' will be moved to ' + arangoHelper.getDatabaseServerId(toServer) + '.');
|
||||
console.log(toServer);
|
||||
arangoHelper.arangoNotification('Shard ' + shardName + ' will be moved to ' + arangoHelper.getDatabaseShortName(toServer) + '.');
|
||||
window.setTimeout(function () {
|
||||
window.App.shardsView.render();
|
||||
}, 3000);
|
||||
}
|
||||
},
|
||||
error: function () {
|
||||
arangoHelper.arangoError('Shard ' + shardName + ' could not be moved to ' + arangoHelper.getDatabaseServerId(toServer) + '.');
|
||||
arangoHelper.arangoError('Shard ' + shardName + ' could not be moved to ' + arangoHelper.getDatabaseShortName(toServer) + '.');
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue