1
0
Fork 0

Allow removing dbservers which are no longer in use

This commit is contained in:
Andreas Streichardt 2017-02-13 17:23:05 +01:00
parent 1b92c8e46b
commit e345415879
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ actions.defineHttp({
let preconditions = {};
preconditions['/arango/Supervision/Health/' + serverId + '/Status'] = {'old': 'FAILED'};
// need to make sure it is not responsible for anything
if (node.Role == 'DBServer') {
if (node.Role === 'DBServer') {
let used = [];
preconditions = reducePlanServers(function(data, agencyKey, servers) {
data[agencyKey] = {'old': servers};