summaryrefslogtreecommitdiff
path: root/jstests/parallel
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/parallel
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/parallel')
-rw-r--r--jstests/parallel/shellfork.js2
-rw-r--r--jstests/parallel/update_serializability2.js38
2 files changed, 20 insertions, 20 deletions
diff --git a/jstests/parallel/shellfork.js b/jstests/parallel/shellfork.js
index 571f917fc4a..65be8abb33d 100644
--- a/jstests/parallel/shellfork.js
+++ b/jstests/parallel/shellfork.js
@@ -31,7 +31,7 @@ assert.eq(7, z.returnData());
t = 1;
z = new ScopedThread(function() {
- assert(typeof(t) == "undefined", "t not undefined");
+ assert(typeof (t) == "undefined", "t not undefined");
t = 5;
return t;
});
diff --git a/jstests/parallel/update_serializability2.js b/jstests/parallel/update_serializability2.js
index f28ddf9bd5a..84b27049e53 100644
--- a/jstests/parallel/update_serializability2.js
+++ b/jstests/parallel/update_serializability2.js
@@ -1,27 +1,27 @@
(function() {
- "use strict";
- var t = db.update_serializability1;
- t.drop();
+"use strict";
+var t = db.update_serializability1;
+t.drop();
- var N = 100000;
+var N = 100000;
- var bulk = t.initializeUnorderedBulkOp();
- for (var i = 0; i < N; i++) {
- bulk.insert({_id: i, a: i, b: N - i, x: 1, y: 1});
- }
- bulk.execute();
+var bulk = t.initializeUnorderedBulkOp();
+for (var i = 0; i < N; i++) {
+ bulk.insert({_id: i, a: i, b: N - i, x: 1, y: 1});
+}
+bulk.execute();
- t.ensureIndex({a: 1});
- t.ensureIndex({b: 1});
+t.ensureIndex({a: 1});
+t.ensureIndex({b: 1});
- var s1 = startParallelShell(
- "db.update_serializability1.update( { a : { $gte : 0 } }, { $set : { x : 2 } }, false, true );");
- var s2 = startParallelShell("db.update_serializability1.update( { b : { $lte : " + N +
- " } }, { $set : { y : 2 } }, false, true );");
+var s1 = startParallelShell(
+ "db.update_serializability1.update( { a : { $gte : 0 } }, { $set : { x : 2 } }, false, true );");
+var s2 = startParallelShell("db.update_serializability1.update( { b : { $lte : " + N +
+ " } }, { $set : { y : 2 } }, false, true );");
- s1();
- s2();
+s1();
+s2();
- // both operations should happen on every document
- assert.eq(N, t.find({x: 2, y: 2}).count());
+// both operations should happen on every document
+assert.eq(N, t.find({x: 2, y: 2}).count());
})();