diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-05-22 16:11:51 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2018-05-22 16:11:51 -0400 |
commit | ac1ceb8cb4994e235abe9a364c3dd7a2bfa84a62 (patch) | |
tree | 728c38bb3749a4df484beada0d15ba1686aecc9a /src/mongo/db/auth/user_set.cpp | |
parent | 27d3642878e8efd88334957b339708f96daa1dbd (diff) | |
download | mongo-ac1ceb8cb4994e235abe9a364c3dd7a2bfa84a62.tar.gz |
SERVER-34893 Embedded authorization components
To facilitate using the mongodb code as an in-process embeddable
library, we have created a dummy auth layer which can stand in for
the real auth system in these contexts. Several link edges needed
to be retargetted, and some tests needed to be relaxed.
Diffstat (limited to 'src/mongo/db/auth/user_set.cpp')
-rw-r--r-- | src/mongo/db/auth/user_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/user_set.cpp b/src/mongo/db/auth/user_set.cpp index 2616b5cc697..fe8d273a2ca 100644 --- a/src/mongo/db/auth/user_set.cpp +++ b/src/mongo/db/auth/user_set.cpp @@ -129,6 +129,6 @@ User* UserSet::lookupByDBName(StringData dbname) const { } UserNameIterator UserSet::getNames() const { - return UserNameIterator(new UserSetNameIteratorImpl(begin(), end())); + return UserNameIterator(std::make_unique<UserSetNameIteratorImpl>(begin(), end())); } } // namespace mongo |