diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-11-20 10:47:02 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-11-20 13:20:42 -0500 |
commit | dac93da27163d2c1e0978a44ec814caaa80c5428 (patch) | |
tree | 93349f5b48954a81366d356783c7cd67da642e32 | |
parent | 85abee65027409182c318d22aa79fd224e6b311c (diff) | |
download | mongo-dac93da27163d2c1e0978a44ec814caaa80c5428.tar.gz |
SERVER-6591 Don't query config server when running with noauth
-rw-r--r-- | src/mongo/s/security.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/security.cpp b/src/mongo/s/security.cpp index e7ccbdee554..5c5a97ace61 100644 --- a/src/mongo/s/security.cpp +++ b/src/mongo/s/security.cpp @@ -85,7 +85,7 @@ namespace mongo { } void AuthenticationInfo::_checkLocalHostSpecialAdmin() { - if (!_isLocalHost || !_isLocalHostAndLocalHostIsAuthorizedForAll) { + if (noauth || !_isLocalHost || !_isLocalHostAndLocalHostIsAuthorizedForAll) { return; } |