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

Init ns index if it exists

This commit is contained in:
Aaron 2009-02-06 13:49:33 -05:00
parent abf7cc678d
commit e62fefd18c

View File

@ -41,6 +41,10 @@ namespace mongo {
}
newDb = namespaceIndex.exists();
// If already exists, open. Otherwise behave as if empty until
// there's a write, then open.
if ( !newDb )
namespaceIndex.init();
profile = 0;
profileName = name + ".system.profile";
}