summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/block_compressor_options.js
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/noPassthrough/block_compressor_options.js
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/noPassthrough/block_compressor_options.js')
-rw-r--r--jstests/noPassthrough/block_compressor_options.js60
1 files changed, 30 insertions, 30 deletions
diff --git a/jstests/noPassthrough/block_compressor_options.js b/jstests/noPassthrough/block_compressor_options.js
index ebc21f41ceb..129a2a567df 100644
--- a/jstests/noPassthrough/block_compressor_options.js
+++ b/jstests/noPassthrough/block_compressor_options.js
@@ -15,38 +15,38 @@
* @tags: [requires_persistence,requires_wiredtiger]
*/
(function() {
- 'use strict';
+'use strict';
- // On the first iteration, start a mongod. Subsequent iterations will close and restart on the
- // same dbpath.
- let firstIteration = true;
- let compressors = ['none', 'snappy', 'zlib', 'zstd'];
- let mongo;
- for (let compressor of compressors) {
- jsTestLog({"Starting with compressor": compressor});
- if (firstIteration) {
- mongo = MongoRunner.runMongod({
- wiredTigerCollectionBlockCompressor: compressor,
- wiredTigerJournalCompressor: compressor
- });
- firstIteration = false;
- } else {
- MongoRunner.stopMongod(mongo);
- mongo = MongoRunner.runMongod({
- restart: true,
- dbpath: mongo.dbpath,
- cleanData: false,
- wiredTigerCollectionBlockCompressor: compressor
- });
- }
- mongo.getDB('db')[compressor].insert({});
+// On the first iteration, start a mongod. Subsequent iterations will close and restart on the
+// same dbpath.
+let firstIteration = true;
+let compressors = ['none', 'snappy', 'zlib', 'zstd'];
+let mongo;
+for (let compressor of compressors) {
+ jsTestLog({"Starting with compressor": compressor});
+ if (firstIteration) {
+ mongo = MongoRunner.runMongod({
+ wiredTigerCollectionBlockCompressor: compressor,
+ wiredTigerJournalCompressor: compressor
+ });
+ firstIteration = false;
+ } else {
+ MongoRunner.stopMongod(mongo);
+ mongo = MongoRunner.runMongod({
+ restart: true,
+ dbpath: mongo.dbpath,
+ cleanData: false,
+ wiredTigerCollectionBlockCompressor: compressor
+ });
}
+ mongo.getDB('db')[compressor].insert({});
+}
- for (let compressor of compressors) {
- jsTestLog({"Asserting collection compressor": compressor});
- let stats = mongo.getDB('db')[compressor].stats();
- assert(stats['wiredTiger']['creationString'].search('block_compressor=' + compressor) > -1);
- }
+for (let compressor of compressors) {
+ jsTestLog({"Asserting collection compressor": compressor});
+ let stats = mongo.getDB('db')[compressor].stats();
+ assert(stats['wiredTiger']['creationString'].search('block_compressor=' + compressor) > -1);
+}
- MongoRunner.stopMongod(mongo);
+MongoRunner.stopMongod(mongo);
}());