diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-20 20:46:35 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-21 14:37:46 -0500 |
commit | b207726d5587d3ec82e940681fa7f5047066b40a (patch) | |
tree | 4e196228920ade35e50c13405db7d24d9aeb90a1 /src/mongo/db/restapi.cpp | |
parent | fbdadd06ff07109cc5231955c3a5bbeb268d80a2 (diff) | |
download | mongo-b207726d5587d3ec82e940681fa7f5047066b40a.tar.gz |
SERVER-7572 Remove doauth argument from Client::Context
Diffstat (limited to 'src/mongo/db/restapi.cpp')
-rw-r--r-- | src/mongo/db/restapi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/restapi.cpp b/src/mongo/db/restapi.cpp index da9a3fe48ef..2500cd13763 100644 --- a/src/mongo/db/restapi.cpp +++ b/src/mongo/db/restapi.cpp @@ -253,15 +253,15 @@ namespace mongo { writelocktry wl(10000); verify( wl.got() ); - Client::Context cx( "admin.system.users", dbpath, false ); + Client::Context cx("admin.system.users", dbpath); } bool RestAdminAccess::haveAdminUsers() const { openAdminDb(); readlocktry rl(/*"admin.system.users", */10000); uassert( 16173 , "couldn't get read lock to get admin auth credentials" , rl.got() ); - Client::Context cx( "admin.system.users", dbpath, false ); - return ! Helpers::isEmpty("admin.system.users", false); + Client::Context cx("admin.system.users", dbpath); + return ! Helpers::isEmpty("admin.system.users"); } BSONObj RestAdminAccess::getAdminUser( const string& username ) const { |