0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

attempt to fix weird index issue

This commit is contained in:
Eliot Horowitz 2010-02-07 01:58:31 -05:00
parent 6c6d40a375
commit 4afc973c3e

View File

@ -186,7 +186,7 @@ namespace mongo {
}
if ( dbMutex.getState() >= 0 )
if ( thisTime.size() > 0 && dbMutex.getState() >= 0 )
db->ensureIndex( coll, BSON( "_id" << 1 ) , true );
// --- remove things from scope that were removed