There was an error while loading. Please reload this page.
1 parent cef8430 commit c779c49Copy full SHA for c779c49
addons/promote-new-primary-wo-proxy/scripts/promote-master.js
@@ -59,15 +59,15 @@ function promoteNewPrimary() {
59
resp = this.restoreNodes();
60
this.log("restoreNodes resp ->" + resp);
61
if (resp.result != 0) return resp;
62
+
63
+ resp = this.removeFailedPrimary();
64
+ this.log("removeFailedPrimary resp ->" + resp);
65
+ if (resp.result != 0) return resp;
66
67
resp = this.addNode();
68
this.log("addNode resp ->" + resp);
69
70
- resp = this.removeFailedPrimary();
- this.log("removeFailedPrimary resp ->" + resp);
- if (resp.result != 0) return resp;
-
71
resp = this.addIteration(true);
72
this.log("addIteration resp ->" + resp);
73
0 commit comments