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:
parent
abf7cc678d
commit
e62fefd18c
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user