Skip to content

Commit 2b53ec7

Browse files
authored
JE-66171
1 parent 824d338 commit 2b53ec7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function promoteNewPrimary() {
44
let ROOT = "root";
55
let PROXY = "proxy";
66
let SQLDB = "sqldb";
7-
let PRIMARY = "rimary";
7+
let PRIMARY = "Primary";
88
let SECONDARY = "secondary";
99
let FAILED = "failed";
1010
let Response = com.hivext.api.Response;
@@ -415,7 +415,10 @@ function promoteNewPrimary() {
415415

416416
this.log("restoreNodes: getNewPrimaryNode resp->" + newPrimary);
417417

418-
let command = "/bash /tmp/db_recovery.sh --scenario restore_secondary_from_primary --donor-ip " + newPrimary.address;
418+
let command = "bash /tmp/db_recovery.sh --scenario restore_secondary_from_primary --donor-ip " + newPrimary.address;
419+
420+
this.log("restoreNodes: command resp->" + command);
421+
419422
for (let i = 0, n = nodes.length; i < n; i++) {
420423
if (nodes[i].id != newPrimary.id && nodes[i].type == SECONDARY) {
421424
let resp = this.cmdById(nodes[i].id, command);

0 commit comments

Comments
 (0)