diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-04 10:49:19 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-04 10:49:19 -0500 |
commit | 62f47cc910f68b842a512533bd06b5343f7da41e (patch) | |
tree | e8b61a4ddb43cec1bbdf32a76340a605e8a5ef7b /db/db.cpp | |
parent | cecffe079e564f81fae8d34839d08ab2c3bcb13d (diff) | |
download | mongo-62f47cc910f68b842a512533bd06b5343f7da41e.tar.gz |
cleaning up security - moving to centralized location
Diffstat (limited to 'db/db.cpp')
-rw-r--r-- | db/db.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/db/db.cpp b/db/db.cpp index 89833f2e544..3639a688e02 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -195,7 +195,7 @@ namespace mongo { try { - c.ai->isLocalHost = dbMsgPort.farEnd.isLocalHost(); + c.getAuthenticationInfo()->isLocalHost = dbMsgPort.farEnd.isLocalHost(); Message m; while ( 1 ) { @@ -337,8 +337,9 @@ namespace mongo { extern bool checkNsFilesOnLoad; void repairDatabases() { + Client::GodScope gs; log(1) << "enter repairDatabases" << endl; - + assert(checkNsFilesOnLoad); checkNsFilesOnLoad = false; // we are mainly just checking the header - don't scan the whole .ns file for every db here. |