Skip to content

Commit

Permalink
ensure we don't say 'insure' when we mean 'ensure'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Matulef committed Dec 21, 2012
1 parent f8b0a29 commit 4372bc8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion jstests/replsets/capped_id.js
Expand Up @@ -125,7 +125,7 @@ for( testnum=0; testnum < numtests; testnum++ ){
slave2db.system.indexes.find().forEach(printjson); slave2db.system.indexes.find().forEach(printjson);
print(""); print("");


// insure all nodes have _id index // ensure all nodes have _id index
assert.eq( 1 , assert.eq( 1 ,
masterdb.system.indexes.find( { key:{"_id" : 1}, ns: dbname + "." + coll } ).count() , masterdb.system.indexes.find( { key:{"_id" : 1}, ns: dbname + "." + coll } ).count() ,
"master has an _id index on capped collection"); "master has an _id index on capped collection");
Expand Down
2 changes: 1 addition & 1 deletion jstests/slowNightly/ttl_sharded.js
Expand Up @@ -40,7 +40,7 @@ assert.soon(
}, "TTL index on x didn't delete enough" , 70 * 1000 }, "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( 0 , t.find( { x : { $lt : new Date( now - 20000000 ) } } ).count() );
assert.eq( 6 , t.count() ); assert.eq( 6 , t.count() );


Expand Down
2 changes: 1 addition & 1 deletion 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 * effectively reuses space. The test repeatedly inserts and
* then deletes a batch of variable-length strings, then checks * then deletes a batch of variable-length strings, then checks
* that doing so does not cause the storageSize to grow. */ * that doing so does not cause the storageSize to grow. */
Expand Down
2 changes: 1 addition & 1 deletion src/mongo/db/hashindex.cpp
Expand Up @@ -95,7 +95,7 @@ namespace mongo {
const vector<FieldInterval>& intervals = frs.range( _hashedField.c_str() ).intervals(); const vector<FieldInterval>& intervals = frs.range( _hashedField.c_str() ).intervals();


//Force a match of the query against the actual document by giving //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. //index is not used as a covered index.
//NOTE: this forcing is necessary due to potential hash collisions //NOTE: this forcing is necessary due to potential hash collisions
const shared_ptr< CoveredIndexMatcher > forceDocMatcher( const shared_ptr< CoveredIndexMatcher > forceDocMatcher(
Expand Down

0 comments on commit 4372bc8

Please sign in to comment.