summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_shutdown_cmd.cpp
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2018-01-29 11:23:25 -0500
committerBilly Donahue <billy.donahue@mongodb.com>2018-01-30 13:13:42 -0500
commit0700f1dc9c9f9985962d96f6aef6200a3a5bd57d (patch)
treec4ba664c23e14cff59d94f9676601087f22d5e33 /src/mongo/s/commands/cluster_shutdown_cmd.cpp
parentf4215c128856ab315c9d3f3a25a5b9ec63269ebf (diff)
downloadmongo-0700f1dc9c9f9985962d96f6aef6200a3a5bd57d.tar.gz
SERVER-32958 Command::help() returns std::string
Diffstat (limited to 'src/mongo/s/commands/cluster_shutdown_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_shutdown_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/commands/cluster_shutdown_cmd.cpp b/src/mongo/s/commands/cluster_shutdown_cmd.cpp
index 5918cc4dabc..a3490488eb4 100644
--- a/src/mongo/s/commands/cluster_shutdown_cmd.cpp
+++ b/src/mongo/s/commands/cluster_shutdown_cmd.cpp
@@ -36,9 +36,9 @@ namespace {
class ClusterShutdownCmd : public CmdShutdown {
public:
- virtual void help(std::stringstream& help) const {
- help << "shutdown the database. must be ran against admin db and "
- << "either (1) ran from localhost or (2) authenticated.";
+ std::string help() const override {
+ return "shutdown the database. must be ran against admin db and "
+ "either (1) ran from localhost or (2) authenticated.";
}
virtual bool run(OperationContext* opCtx,