summaryrefslogtreecommitdiff
path: root/jstests/multiVersion/minor_version_downgrade_replset.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/multiVersion/minor_version_downgrade_replset.js')
-rw-r--r--jstests/multiVersion/minor_version_downgrade_replset.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/jstests/multiVersion/minor_version_downgrade_replset.js b/jstests/multiVersion/minor_version_downgrade_replset.js
index e91c22250ac..e0cc1fe5812 100644
--- a/jstests/multiVersion/minor_version_downgrade_replset.js
+++ b/jstests/multiVersion/minor_version_downgrade_replset.js
@@ -9,9 +9,11 @@ var oldVersion = "3.2.1";
var newVersion = "latest";
var name = "replsetdowngrade";
-var nodes = {n1: {binVersion: newVersion},
- n2: {binVersion: newVersion},
- n3: {binVersion: newVersion}};
+var nodes = {
+ n1: {binVersion: newVersion},
+ n2: {binVersion: newVersion},
+ n3: {binVersion: newVersion}
+};
var rst = new ReplSetTest({name: name, nodes: nodes, nodeOptions: {storageEngine: 'mmapv1'}});
rst.startSet();
@@ -23,7 +25,7 @@ var primary = rst.getPrimary();
var coll = "test.foo";
jsTest.log("Inserting documents into collection.");
-for (var i=0; i<10; i++) {
+for (var i = 0; i < 10; i++) {
primary.getCollection(coll).insert({_id: i, str: "hello world"});
}
@@ -40,7 +42,7 @@ jsTest.log("Starting parallel operations during downgrade..");
var joinFindInsert = startParallelOps(primary, insertDocuments, [rst.getURL(), coll]);
jsTest.log("Downgrading replica set..");
-rst.upgradeSet({ binVersion: oldVersion });
+rst.upgradeSet({binVersion: oldVersion});
jsTest.log("Downgrade complete.");
primary = rst.getPrimary();