diff options
Diffstat (limited to 'src/mongo/db/auth/authorization_manager.cpp')
-rw-r--r-- | src/mongo/db/auth/authorization_manager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/auth/authorization_manager.cpp b/src/mongo/db/auth/authorization_manager.cpp index cfdcf367452..b6c30368b2f 100644 --- a/src/mongo/db/auth/authorization_manager.cpp +++ b/src/mongo/db/auth/authorization_manager.cpp @@ -38,6 +38,7 @@ #include <vector> #include "mongo/base/init.h" +#include "mongo/base/shim.h" #include "mongo/base/status.h" #include "mongo/bson/mutable/document.h" #include "mongo/bson/mutable/element.h" @@ -100,6 +101,10 @@ const int AuthorizationManager::schemaVersion26Upgrade; const int AuthorizationManager::schemaVersion26Final; const int AuthorizationManager::schemaVersion28SCRAM; -MONGO_DEFINE_SHIM(AuthorizationManager::create); + +std::unique_ptr<AuthorizationManager> AuthorizationManager::create() { + static auto w = MONGO_WEAK_FUNCTION_DEFINITION(AuthorizationManager::create); + return w(); +} } // namespace mongo |