summaryrefslogtreecommitdiff
path: root/src/mongo/db/auth/user_set.cpp
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2018-05-22 16:11:51 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2018-05-22 16:11:51 -0400
commitac1ceb8cb4994e235abe9a364c3dd7a2bfa84a62 (patch)
tree728c38bb3749a4df484beada0d15ba1686aecc9a /src/mongo/db/auth/user_set.cpp
parent27d3642878e8efd88334957b339708f96daa1dbd (diff)
downloadmongo-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.cpp2
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