diff options
Diffstat (limited to 'db/security.h')
-rw-r--r-- | db/security.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/security.h b/db/security.h index 86e6b4ad7fa..dae27de5abf 100644 --- a/db/security.h +++ b/db/security.h @@ -58,6 +58,7 @@ namespace mongo { if( m["admin"].level == 2 ) return true; if( m["local"].level == 2 ) return true; if( isLocalHost ) { + dblock l; // TODO: this is bad, since we want to be able to check this even if outside global lock. probably goes away with concurrency DBContext c("admin.system.users"); BSONObj result; if( Helpers::getSingleton("admin.system.users", result) ) |