From 4372bc82d86d42c0ebaae60586184e9b0ed6cbcc Mon Sep 17 00:00:00 2001 From: Kevin Matulef Date: Fri, 21 Dec 2012 11:58:42 -0500 Subject: [PATCH] ensure we don't say 'insure' when we mean 'ensure' --- jstests/replsets/capped_id.js | 2 +- jstests/slowNightly/ttl_sharded.js | 2 +- jstests/use_power_of_2.js | 2 +- src/mongo/db/hashindex.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jstests/replsets/capped_id.js b/jstests/replsets/capped_id.js index 2fd3369e2778c..67bfef0acce5e 100644 --- a/jstests/replsets/capped_id.js +++ b/jstests/replsets/capped_id.js @@ -125,7 +125,7 @@ for( testnum=0; testnum < numtests; testnum++ ){ slave2db.system.indexes.find().forEach(printjson); print(""); - // insure all nodes have _id index + // ensure all nodes have _id index assert.eq( 1 , masterdb.system.indexes.find( { key:{"_id" : 1}, ns: dbname + "." + coll } ).count() , "master has an _id index on capped collection"); diff --git a/jstests/slowNightly/ttl_sharded.js b/jstests/slowNightly/ttl_sharded.js index c9cfc948b532b..a1a702acb60e7 100644 --- a/jstests/slowNightly/ttl_sharded.js +++ b/jstests/slowNightly/ttl_sharded.js @@ -40,7 +40,7 @@ assert.soon( }, "TTL index on x didn't delete enough" , 70 * 1000 ); -// insure that count ultimately ends up at 6 +// ensure that count ultimately ends up at 6 assert.eq( 0 , t.find( { x : { $lt : new Date( now - 20000000 ) } } ).count() ); assert.eq( 6 , t.count() ); diff --git a/jstests/use_power_of_2.js b/jstests/use_power_of_2.js index f1bc7294878a8..3200c937452be 100644 --- a/jstests/use_power_of_2.js +++ b/jstests/use_power_of_2.js @@ -1,4 +1,4 @@ -/* This test insures that the usePowerOf2 user flag +/* This test ensures that the usePowerOf2 user flag * effectively reuses space. The test repeatedly inserts and * then deletes a batch of variable-length strings, then checks * that doing so does not cause the storageSize to grow. */ diff --git a/src/mongo/db/hashindex.cpp b/src/mongo/db/hashindex.cpp index 5afdedefcbb7a..60b7bcf4a5737 100644 --- a/src/mongo/db/hashindex.cpp +++ b/src/mongo/db/hashindex.cpp @@ -95,7 +95,7 @@ namespace mongo { const vector& intervals = frs.range( _hashedField.c_str() ).intervals(); //Force a match of the query against the actual document by giving - //the cursor a matcher with an empty indexKeyPattern. This insures the + //the cursor a matcher with an empty indexKeyPattern. This ensures the //index is not used as a covered index. //NOTE: this forcing is necessary due to potential hash collisions const shared_ptr< CoveredIndexMatcher > forceDocMatcher(