8000 Fix removal of nodes · kellylg/arangodb@810ca8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 810ca8a

Browse files
author
Andreas Streichardt
committed
Fix removal of nodes
1 parent 38e9a83 commit 810ca8a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/actions/api-cluster.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ actions.defineHttp({
7272
return;
7373
}
7474

75-
if (node.Role !== 'Coordinator' && node.Role !== 'DBServer') {
75+
if (serverId.substr(0, 4) != 'CRDN' && serverId.substr(0, 4) != 'PRMR') {
7676
actions.resultError(req, res, actions.HTTP_BAD,
77-
'unhandled role ' + node.role);
77+
'couldn\'t determine role for serverid ' + serverId);
7878
return;
7979
}
8080

@@ -106,11 +106,11 @@ actions.defineHttp({
106106
}
107107

108108
let operations = {};
109-
operations['/arango/Coordinators/' + serverId] = {'op': 'delete'};
110-
operations['/arango/DBServers/' + serverId] = {'op': 'delete'};
109+
operations['/arango/Plan/Coordinators/' + serverId] = {'op': 'delete'};
110+
operations['/arango/Plan/DBServers/' + serverId] = {'op': 'delete'};
111111
operations['/arango/Current/ServersRegistered/' + serverId] = {'op': 'delete'};
112112
operations['/arango/Supervision/Health/' + serverId] = {'op': 'delete'};
113-
operations['/arango/MapUniqueToShortID/' + serverId] = {'op': 'delete'};
113+
operations['/arango/Target/MapUniqueToShortID/' + serverId] = {'op': 'delete'};
114114

115115
try {
116116
global.ArangoAgency.write([[operations, preconditions]]);

0 commit comments

Comments
 (0)
0