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/s/commands/cluster_whats_my_uri_cmd.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/s/commands/cluster_whats_my_uri_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp b/src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp index 5dba5ce10c9..c0092996a8a 100644 --- a/src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp +++ b/src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp @@ -38,7 +38,7 @@ class WhatsMyUriCmd : public BasicCommand { public: WhatsMyUriCmd() : BasicCommand("whatsmyuri") {} - AllowedOnSecondary secondaryAllowed() const override { + AllowedOnSecondary secondaryAllowed(ServiceContext*) const override { return AllowedOnSecondary::kAlways; } |