summaryrefslogtreecommitdiff
path: root/jstests/mmap_v1
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-02-04 12:29:39 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-02-05 15:00:50 -0500
commita3be230c5af98b8ca149cb89544345654a2ca7d1 (patch)
treeaa9d0cd239910b77dfbe6d5e5a68cd4dcb54f8b1 /jstests/mmap_v1
parent4fff5009ab22466f8780ce727b9fbf1992f0db62 (diff)
downloadmongo-a3be230c5af98b8ca149cb89544345654a2ca7d1.tar.gz
SERVER-22341 fix jslint errors in jstests/mmap_v1 with eslint --fix
Diffstat (limited to 'jstests/mmap_v1')
-rw-r--r--jstests/mmap_v1/capped8.js4
-rw-r--r--jstests/mmap_v1/capped_max.js4
-rw-r--r--jstests/mmap_v1/capped_server2639.js2
-rw-r--r--jstests/mmap_v1/collmod.js6
-rw-r--r--jstests/mmap_v1/compactPreservePadding.js2
-rw-r--r--jstests/mmap_v1/datasize3.js16
-rw-r--r--jstests/mmap_v1/disk_reuse1.js6
-rw-r--r--jstests/mmap_v1/dur_big_atomic_update.js2
-rw-r--r--jstests/mmap_v1/extent2.js8
-rw-r--r--jstests/mmap_v1/list_collections2.js2
-rw-r--r--jstests/mmap_v1/update.js2
11 files changed, 27 insertions, 27 deletions
diff --git a/jstests/mmap_v1/capped8.js b/jstests/mmap_v1/capped8.js
index 13da7863d4f..81c261ef985 100644
--- a/jstests/mmap_v1/capped8.js
+++ b/jstests/mmap_v1/capped8.js
@@ -10,11 +10,11 @@ function debug( x ) {
/** Generate an object with a string field of specified length */
function obj( size, x ) {
- return {X:x, a:new Array( size + 1 ).toString()};;
+ return {X:x, a:new Array( size + 1 ).toString()};
}
function withinTwo( a, b ) {
- assert( Math.abs( a - b ) <= 2, "not within one: " + a + ", " + b )
+ assert( Math.abs( a - b ) <= 2, "not within one: " + a + ", " + b );
}
var X = 0;
diff --git a/jstests/mmap_v1/capped_max.js b/jstests/mmap_v1/capped_max.js
index 1d7cbc3ef23..44e5da1d4ae 100644
--- a/jstests/mmap_v1/capped_max.js
+++ b/jstests/mmap_v1/capped_max.js
@@ -4,7 +4,7 @@ sz = 1024 * 16;
t.drop();
db.createCollection( t.getName() , {capped: true, size: sz } );
-assert.lt( Math.pow( 2, 62 ), t.stats().max.floatApprox )
+assert.lt( Math.pow( 2, 62 ), t.stats().max.floatApprox );
t.drop();
db.createCollection( t.getName() , {capped: true, size: sz, max: 123456 } );
@@ -25,5 +25,5 @@ assert.eq(NumberLong("9223372036854775807"), t.stats().max );
t.drop();
res = db.createCollection( t.getName() , {capped: true, size: sz, max: Math.pow(2, 31) } );
assert.eq( 0, res.ok, tojson(res) );
-assert.eq( 0, t.stats().ok )
+assert.eq( 0, t.stats().ok );
diff --git a/jstests/mmap_v1/capped_server2639.js b/jstests/mmap_v1/capped_server2639.js
index 1ee5230be4a..574c1755789 100644
--- a/jstests/mmap_v1/capped_server2639.js
+++ b/jstests/mmap_v1/capped_server2639.js
@@ -1,5 +1,5 @@
-name = "server2639"
+name = "server2639";
t = db.getCollection( name );
t.drop();
diff --git a/jstests/mmap_v1/collmod.js b/jstests/mmap_v1/collmod.js
index 2dc5555f3ec..d2056a530ab 100644
--- a/jstests/mmap_v1/collmod.js
+++ b/jstests/mmap_v1/collmod.js
@@ -31,7 +31,7 @@ debug( res );
assert.eq( res.ok , 0 , "collMod shouldn't return ok with unrecognized value" );
// add a TTL index
-t.ensureIndex( {a : 1}, { "expireAfterSeconds": 50 } )
+t.ensureIndex( {a : 1}, { "expireAfterSeconds": 50 } );
assert.eq( 1, db.system.indexes.count( { key : {a:1}, expireAfterSeconds : 50 } ),
"TTL index not added" );
@@ -62,7 +62,7 @@ assert.eq( 1, db.system.indexes.count( { key : {a:1}, expireAfterSeconds : 100 }
// try to modify a faulty TTL index with a non-numeric expireAfterSeconds field
t.dropIndex( {a : 1 } );
-t.ensureIndex( {a : 1} , { "expireAfterSeconds": "50" } )
+t.ensureIndex( {a : 1} , { "expireAfterSeconds": "50" } );
var res = db.runCommand( { "collMod" : coll,
"index" : { "keyPattern" : {a : 1} , "expireAfterSeconds" : 100 } } );
debug( res );
@@ -70,7 +70,7 @@ assert.eq( 0, res.ok, "shouldn't be able to modify faulty index spec" );
// try with new index, this time set both expireAfterSeconds and the usePowerOf2Sizes flag
t.dropIndex( {a : 1 } );
-t.ensureIndex( {a : 1} , { "expireAfterSeconds": 50 } )
+t.ensureIndex( {a : 1} , { "expireAfterSeconds": 50 } );
var res = db.runCommand( { "collMod" : coll ,
"usePowerOf2Sizes" : true,
"index" : { "keyPattern" : {a : 1} , "expireAfterSeconds" : 100 } } );
diff --git a/jstests/mmap_v1/compactPreservePadding.js b/jstests/mmap_v1/compactPreservePadding.js
index 4748afb9a82..52a3436bf12 100644
--- a/jstests/mmap_v1/compactPreservePadding.js
+++ b/jstests/mmap_v1/compactPreservePadding.js
@@ -11,7 +11,7 @@ for (i = 0; i < 10000; i++) {
}
// remove half the entries
-t.remove({useLargerKeyName:{$mod:[2,0]}})
+t.remove({useLargerKeyName:{$mod:[2,0]}});
printjson(t.stats());
originalSize = t.stats().size;
originalStorage = t.stats().storageSize;
diff --git a/jstests/mmap_v1/datasize3.js b/jstests/mmap_v1/datasize3.js
index 5cc5f4f766e..b706437369a 100644
--- a/jstests/mmap_v1/datasize3.js
+++ b/jstests/mmap_v1/datasize3.js
@@ -1,6 +1,6 @@
t = db.datasize3;
-t.drop()
+t.drop();
function run( options ){
var c = { dataSize : "test.datasize3" };
@@ -9,21 +9,21 @@ function run( options ){
return db.runCommand( c );
}
-t.insert( { x : 1 } )
+t.insert( { x : 1 } );
-a = run()
-b = run( { estimate : true } )
+a = run();
+b = run( { estimate : true } );
printjson( t.stats() );
assert.eq( a.size , b.size );
-t.ensureIndex( { x : 1 } )
+t.ensureIndex( { x : 1 } );
for ( i=2; i<100; i++ )
- t.insert( { x : i } )
+ t.insert( { x : i } );
-a = run( { min : { x : 20 } , max : { x : 50 } } ).size
-b = run( { min : { x : 20 } , max : { x : 50 } , estimate : true } ).size
+a = run( { min : { x : 20 } , max : { x : 50 } } ).size;
+b = run( { min : { x : 20 } , max : { x : 50 } , estimate : true } ).size;
ratio = Math.min( a , b ) / Math.max( a , b );
diff --git a/jstests/mmap_v1/disk_reuse1.js b/jstests/mmap_v1/disk_reuse1.js
index c208dcefb1f..c419792b5d9 100644
--- a/jstests/mmap_v1/disk_reuse1.js
+++ b/jstests/mmap_v1/disk_reuse1.js
@@ -14,7 +14,7 @@ s = "";
while ( s.length < 1024 )
s += "abc";
-state = {}
+state = {};
var bulk = t.initializeUnorderedBulkOp();
for (var i = 0; i < N; i++) {
@@ -32,7 +32,7 @@ for (i = 0; i < N; i++) {
}
assert.writeOK(bulk.execute());
-assert.eq( orig.storageSize , t.stats().storageSize , "A" )
+assert.eq( orig.storageSize , t.stats().storageSize , "A" );
for (j = 0; j < 100; j++){
for (i = 0; i < N; i++){
@@ -45,7 +45,7 @@ for (j = 0; j < 100; j++){
}
assert.writeOK(bulk.execute());
- assert.eq( orig.storageSize , t.stats().storageSize , "B" + j )
+ assert.eq( orig.storageSize , t.stats().storageSize , "B" + j );
}
test.stop();
diff --git a/jstests/mmap_v1/dur_big_atomic_update.js b/jstests/mmap_v1/dur_big_atomic_update.js
index e762ff00eea..56ea6f7ec33 100644
--- a/jstests/mmap_v1/dur_big_atomic_update.js
+++ b/jstests/mmap_v1/dur_big_atomic_update.js
@@ -36,7 +36,7 @@ assert.writeOK(bulk.execute());
// Do it again but in a db.eval
d.eval(
function(big_string) {
- new Mongo().getDB("test").foo.update({}, {$set: {big_string: big_string}}, false, /*multi*/true)
+ new Mongo().getDB("test").foo.update({}, {$set: {big_string: big_string}}, false, /*multi*/true);
}, big_string); // Can't pass in connection or DB objects
err = d.getLastErrorObj();
diff --git a/jstests/mmap_v1/extent2.js b/jstests/mmap_v1/extent2.js
index 75bf0d0b1b8..3b4dc54ca74 100644
--- a/jstests/mmap_v1/extent2.js
+++ b/jstests/mmap_v1/extent2.js
@@ -6,9 +6,9 @@ mydb.dropDatabase();
t = mydb.foo;
function insert(){
- t.insert( { _id : 1 , x : 1 } )
- t.insert( { _id : 2 , x : 1 } )
- t.insert( { _id : 3 , x : 1 } )
+ t.insert( { _id : 1 , x : 1 } );
+ t.insert( { _id : 2 , x : 1 } );
+ t.insert( { _id : 3 , x : 1 } );
t.ensureIndex( { x : 1 } );
}
@@ -25,7 +25,7 @@ for ( i=0; i<100; i++ ) {
end = mydb.stats();
printjson( start );
-printjson( end )
+printjson( end );
assert.eq( start.extentFreeList.num, end.extentFreeList.num );
// 3: 1 data, 1 _id idx, 1 x idx
diff --git a/jstests/mmap_v1/list_collections2.js b/jstests/mmap_v1/list_collections2.js
index 1cb3b612d7d..ff5415a5d08 100644
--- a/jstests/mmap_v1/list_collections2.js
+++ b/jstests/mmap_v1/list_collections2.js
@@ -21,7 +21,7 @@ assert.eq( foo.name, mydb.foo.getName() );
assert( mydb.bar.temp, tojson( bar ) );
-getCollectionName = function(infoObj) { return infoObj.name; }
+getCollectionName = function(infoObj) { return infoObj.name; };
assert.eq( mydb._getCollectionInfosSystemNamespaces().map(getCollectionName),
mydb._getCollectionInfosCommand().map(getCollectionName) );
diff --git a/jstests/mmap_v1/update.js b/jstests/mmap_v1/update.js
index 607f46b4155..818c6fd6574 100644
--- a/jstests/mmap_v1/update.js
+++ b/jstests/mmap_v1/update.js
@@ -7,7 +7,7 @@ for(var i=0; i<10; i++) {
txt = txt + txt;
}
-var iterations = _isWindows() ? 2500 : 5000
+var iterations = _isWindows() ? 2500 : 5000;
// fill db
for(var i=1; i<=iterations; i++) {