diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-01-29 11:23:25 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-01-30 13:13:42 -0500 |
commit | 0700f1dc9c9f9985962d96f6aef6200a3a5bd57d (patch) | |
tree | c4ba664c23e14cff59d94f9676601087f22d5e33 /src/mongo/db/commands/cpuload.cpp | |
parent | f4215c128856ab315c9d3f3a25a5b9ec63269ebf (diff) | |
download | mongo-0700f1dc9c9f9985962d96f6aef6200a3a5bd57d.tar.gz |
SERVER-32958 Command::help() returns std::string
Diffstat (limited to 'src/mongo/db/commands/cpuload.cpp')
-rw-r--r-- | src/mongo/db/commands/cpuload.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/commands/cpuload.cpp b/src/mongo/db/commands/cpuload.cpp index 51192715b1a..be297b83ed6 100644 --- a/src/mongo/db/commands/cpuload.cpp +++ b/src/mongo/db/commands/cpuload.cpp @@ -48,12 +48,12 @@ public: virtual bool isWriteCommandForConfigServer() const { return false; } - virtual void help(stringstream& help) const { - help << "internal. for testing only."; - help << "{ cpuload : 1, cpuFactor : 1 } Runs a straight CPU load. Length of execution "; - help << "scaled by cpuFactor. Puts no additional load on the server beyond the cpu use."; - help << "Useful for testing the stability of the performance of the underlying system,"; - help << "by running the command repeatedly and observing the variation in execution time."; + std::string help() const override { + return "internal. for testing only." + "{ cpuload : 1, cpuFactor : 1 } Runs a straight CPU load. Length of execution " + "scaled by cpuFactor. Puts no additional load on the server beyond the cpu use." + "Useful for testing the stability of the performance of the underlying system," + "by running the command repeatedly and observing the variation in execution time."; } virtual void addRequiredPrivileges(const std::string& dbname, const BSONObj& cmdObj, |