diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2018-02-12 05:41:53 -0500 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-02-14 02:48:16 -0500 |
commit | e39598ae82e34f33f3ef29fd89801ce6cfb5270b (patch) | |
tree | 06672aa5e658859f5d233bdf53ad05d2392f8d4a /src/mongo/db/commands/authentication_commands.cpp | |
parent | 8dc33796371e1226bc2a53481e80cf0fd8142371 (diff) | |
download | mongo-e39598ae82e34f33f3ef29fd89801ce6cfb5270b.tar.gz |
SERVER-33286 Provide service context in Command::secondaryAllowed to allow getting interfaces without using global get function.
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/authentication_commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/authentication_commands.cpp b/src/mongo/db/commands/authentication_commands.cpp index a9d39eda35d..121b1cf3aba 100644 --- a/src/mongo/db/commands/authentication_commands.cpp +++ b/src/mongo/db/commands/authentication_commands.cpp @@ -97,7 +97,7 @@ class CmdGetNonce : public BasicCommand { public: CmdGetNonce() : BasicCommand("getnonce"), _random(SecureRandom::create()) {} - AllowedOnSecondary secondaryAllowed() const override { + AllowedOnSecondary secondaryAllowed(ServiceContext*) const override { return AllowedOnSecondary::kAlways; } @@ -259,7 +259,7 @@ CmdAuthenticate cmdAuthenticate; class CmdLogout : public BasicCommand { public: - AllowedOnSecondary secondaryAllowed() const override { + AllowedOnSecondary secondaryAllowed(ServiceContext*) const override { return AllowedOnSecondary::kAlways; } virtual void addRequiredPrivileges(const std::string& dbname, |