diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/multiVersion/minor_version_downgrade_replset.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/multiVersion/minor_version_downgrade_replset.js')
-rw-r--r-- | jstests/multiVersion/minor_version_downgrade_replset.js | 12 |
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(); |