make sure have _id index on system.js SERVER-609

This commit is contained in:
Eliot Horowitz
2010-02-07 00:49:47 -05:00
parent 1d562aeb9b
commit 656cd3a9f4
2 changed files with 5 additions and 1 deletions

View File

@@ -178,7 +178,9 @@ namespace mongo {
setElement( n.valuestr() , v );
}
db->ensureIndex( coll, BSON( "_id" << 1 ) , true );
}
ScriptingFunction Scope::createFunction( const char * code ){