diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-18 13:02:39 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-18 13:05:01 -0500 |
commit | dc9b65b6709862adcb5de90fc9427ef58271b8d1 (patch) | |
tree | 34d0eb6690eb0fa69b382d0354af7c17996c47e3 /src | |
parent | d6e139e0ccbd0f081f7fe7e24e727fc4ef280ea3 (diff) | |
download | mongo-dc9b65b6709862adcb5de90fc9427ef58271b8d1.tar.gz |
Fix assertion when setting a ClientBasic's AuthorizationManager
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/client_basic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/client_basic.cpp b/src/mongo/db/client_basic.cpp index e8ae5209a40..3312fd1846b 100644 --- a/src/mongo/db/client_basic.cpp +++ b/src/mongo/db/client_basic.cpp @@ -55,7 +55,7 @@ namespace mongo { void ClientBasic::setAuthorizationManager(AuthorizationManager* authorizationManager) { massert(16477, "An AuthorizationManager has already been set up for this connection", - hasAuthorizationManager()); + !hasAuthorizationManager()); _authorizationManager.reset(authorizationManager); } |