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/dbcheck.cpp | |
parent | f4215c128856ab315c9d3f3a25a5b9ec63269ebf (diff) | |
download | mongo-0700f1dc9c9f9985962d96f6aef6200a3a5bd57d.tar.gz |
SERVER-32958 Command::help() returns std::string
Diffstat (limited to 'src/mongo/db/commands/dbcheck.cpp')
-rw-r--r-- | src/mongo/db/commands/dbcheck.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mongo/db/commands/dbcheck.cpp b/src/mongo/db/commands/dbcheck.cpp index 22ab02ceb32..15b6e6cd516 100644 --- a/src/mongo/db/commands/dbcheck.cpp +++ b/src/mongo/db/commands/dbcheck.cpp @@ -501,16 +501,16 @@ public: return false; } - virtual void help(std::stringstream& help) const { - help << "Validate replica set consistency.\n" - << "Invoke with { dbCheck: <collection name/uuid>,\n" - << " minKey: <first key, exclusive>,\n" - << " maxKey: <last key, inclusive>,\n" - << " maxCount: <max number of docs>,\n" - << " maxSize: <max size of docs>,\n" - << " maxCountPerSecond: <max rate in docs/sec> } " - << "to check a collection.\n" - << "Invoke with {dbCheck: 1} to check all collections in the database."; + std::string help() const override { + return "Validate replica set consistency.\n" + "Invoke with { dbCheck: <collection name/uuid>,\n" + " minKey: <first key, exclusive>,\n" + " maxKey: <last key, inclusive>,\n" + " maxCount: <max number of docs>,\n" + " maxSize: <max size of docs>,\n" + " maxCountPerSecond: <max rate in docs/sec> } " + "to check a collection.\n" + "Invoke with {dbCheck: 1} to check all collections in the database."; } virtual Status checkAuthForCommand(Client* client, |