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/s/commands/commands_public.cpp | |
parent | f4215c128856ab315c9d3f3a25a5b9ec63269ebf (diff) | |
download | mongo-0700f1dc9c9f9985962d96f6aef6200a3a5bd57d.tar.gz |
SERVER-32958 Command::help() returns std::string
Diffstat (limited to 'src/mongo/s/commands/commands_public.cpp')
-rw-r--r-- | src/mongo/s/commands/commands_public.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/s/commands/commands_public.cpp b/src/mongo/s/commands/commands_public.cpp index 0643816ee8b..4c153831450 100644 --- a/src/mongo/s/commands/commands_public.cpp +++ b/src/mongo/s/commands/commands_public.cpp @@ -1065,8 +1065,8 @@ class DistinctCmd : public PublicGridCommand { public: DistinctCmd() : PublicGridCommand("distinct") {} - void help(stringstream& help) const override { - help << "{ distinct : 'collection name' , key : 'a.b' , query : {} }"; + std::string help() const override { + return "{ distinct : 'collection name' , key : 'a.b' , query : {} }"; } void addRequiredPrivileges(const std::string& dbname, @@ -1278,8 +1278,8 @@ class FileMD5Cmd : public PublicGridCommand { public: FileMD5Cmd() : PublicGridCommand("filemd5") {} - void help(stringstream& help) const override { - help << " example: { filemd5 : ObjectId(aaaaaaa) , root : \"fs\" }"; + std::string help() const override { + return " example: { filemd5 : ObjectId(aaaaaaa) , root : \"fs\" }"; } std::string parseNs(const std::string& dbname, const BSONObj& cmdObj) const override { @@ -1441,8 +1441,8 @@ class Geo2dFindNearCmd : public PublicGridCommand { public: Geo2dFindNearCmd() : PublicGridCommand("geoNear") {} - void help(stringstream& h) const override { - h << "http://dochub.mongodb.org/core/geo#GeospatialIndexing-geoNearCommand"; + std::string help() const override { + return "http://dochub.mongodb.org/core/geo#GeospatialIndexing-geoNearCommand"; } void addRequiredPrivileges(const std::string& dbname, |