diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-11-14 19:32:28 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-11-14 19:34:17 -0500 |
commit | ba8c39a1ee89e4edc6e2613c31a2dd6f8b7f493d (patch) | |
tree | 18ac2c36cdeaaa93a3b835b212704647adb90ff6 /src/mongo/db | |
parent | dd2b307956c44340d46fe05eabf5bbd08f96186c (diff) | |
download | mongo-ba8c39a1ee89e4edc6e2613c31a2dd6f8b7f493d.tar.gz |
SERVER-32978 Implement proper strict weak ordering
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/auth/sasl_mechanism_registry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/auth/sasl_mechanism_registry.h b/src/mongo/db/auth/sasl_mechanism_registry.h index e479b0a5177..73761937ddf 100644 --- a/src/mongo/db/auth/sasl_mechanism_registry.h +++ b/src/mongo/db/auth/sasl_mechanism_registry.h @@ -354,7 +354,7 @@ public: auto& list = _getMapRef(T::isInternal); list.emplace_back(std::make_unique<T>()); std::stable_sort(list.begin(), list.end(), [](const auto& a, const auto& b) { - return (a->securityLevel() >= b->securityLevel()); + return (a->securityLevel() > b->securityLevel()); }); return true; |