Skip to content

Commit c779c49

Browse files
authored
fixed removing primary node
1 parent cef8430 commit c779c49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

addons/promote-new-primary-wo-proxy/scripts/promote-master.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ function promoteNewPrimary() {
5959
resp = this.restoreNodes();
6060
this.log("restoreNodes resp ->" + resp);
6161
if (resp.result != 0) return resp;
62+
63+
resp = this.removeFailedPrimary();
64+
this.log("removeFailedPrimary resp ->" + resp);
65+
if (resp.result != 0) return resp;
6266

6367
resp = this.addNode();
6468
this.log("addNode resp ->" + resp);
6569
if (resp.result != 0) return resp;
6670

67-
resp = this.removeFailedPrimary();
68-
this.log("removeFailedPrimary resp ->" + resp);
69-
if (resp.result != 0) return resp;
70-
7171
resp = this.addIteration(true);
7272
this.log("addIteration resp ->" + resp);
7373
if (resp.result != 0) return resp;

0 commit comments

Comments
 (0)