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;
|
return shortName;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getDatabaseShortName: function (id) {
|
||||||
|
return this.getCoordinatorShortName(id);
|
||||||
|
},
|
||||||
|
|
||||||
getDatabaseServerId: function (shortname) {
|
getDatabaseServerId: function (shortname) {
|
||||||
var id;
|
var id;
|
||||||
if (window.clusterHealth) {
|
if (window.clusterHealth) {
|
||||||
|
|
|
@ -186,14 +186,15 @@
|
||||||
async: true,
|
async: true,
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
if (data.id) {
|
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.setTimeout(function () {
|
||||||
window.App.shardsView.render();
|
window.App.shardsView.render();
|
||||||
}, 3000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function () {
|
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