-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Storage Execution
-
ALL
-
0
It locks databases just to check if they are empty (where empty is defined as not having an NS file). This is unnecessary since it computes the size just before grabbing the lock. Additionally, if a DB is dropped after we get the list of dbs, but before we lock that database, the DB will be artificially resurrected.
The second loop uses the hard coded size of 1 which seems incorrect since it is almost exclusively for dbs that are "empty".
- is duplicated by
-
SERVER-20638 Reading the profiling level shouldn't create databases that don't exist
- Closed
- is related to
-
SERVER-2080 Connecting to an authenticated server creates the database namespace regardless of success or failure.
- Closed