handle read-only lock case

This commit is contained in:
Eliot Horowitz
2010-02-07 01:28:36 -05:00
parent 85000c0649
commit efc3bd2a93

View File

@@ -185,8 +185,9 @@ namespace mongo {
_storedNames.insert( n.valuestr() );
}
db->ensureIndex( coll, BSON( "_id" << 1 ) , true );
if ( dbMutex.getState() > 0 )
db->ensureIndex( coll, BSON( "_id" << 1 ) , true );
// --- remove things from scope that were removed