diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2022-08-15 18:56:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-16 23:42:26 +0000 |
commit | fa82903f53a8e779ba0414849846c4c072b5a1e8 (patch) | |
tree | c7a2ff533f9c834e046b693c588a9a002cbcec7c /src/mongo/db/commands | |
parent | 707ba0a0ade42c4540b9cabaaf5a257de944cc3e (diff) | |
download | mongo-fa82903f53a8e779ba0414849846c4c072b5a1e8.tar.gz |
SERVER-68848 explicit IDLParserContext unary ctor
Diffstat (limited to 'src/mongo/db/commands')
-rw-r--r-- | src/mongo/db/commands/generic_servers.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/commands/getmore_cmd.cpp | 5 | ||||
-rw-r--r-- | src/mongo/db/commands/parameters.cpp | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/commands/generic_servers.cpp b/src/mongo/db/commands/generic_servers.cpp index 14dd3cc15ee..b01d445a122 100644 --- a/src/mongo/db/commands/generic_servers.cpp +++ b/src/mongo/db/commands/generic_servers.cpp @@ -282,7 +282,7 @@ public: hangInGetLog.pauseWhileSet(); } - auto request = GetLogCommand::parse({"getLog"}, cmdObj); + auto request = GetLogCommand::parse(IDLParserContext{"getLog"}, cmdObj); auto logName = request.getCommandParameter(); if (logName == "*") { std::vector<std::string> names; diff --git a/src/mongo/db/commands/getmore_cmd.cpp b/src/mongo/db/commands/getmore_cmd.cpp index c7750690cb5..c189610d9db 100644 --- a/src/mongo/db/commands/getmore_cmd.cpp +++ b/src/mongo/db/commands/getmore_cmd.cpp @@ -318,7 +318,7 @@ public: public: Invocation(Command* cmd, const OpMsgRequest& request) : CommandInvocation(cmd), - _cmd(GetMoreCommandRequest::parse({"getMore"}, request.body)) { + _cmd(GetMoreCommandRequest::parse(IDLParserContext{"getMore"}, request.body)) { NamespaceString nss(_cmd.getDbName(), _cmd.getCollection()); uassert(ErrorCodes::InvalidNamespace, str::stream() << "Invalid namespace for getMore: " << nss.ns(), @@ -810,7 +810,8 @@ public: void validateResult(rpc::ReplyBuilderInterface* reply) { auto ret = reply->getBodyBuilder().asTempObj(); - CursorGetMoreReply::parse({"CursorGetMoreReply"}, ret.removeField("ok")); + CursorGetMoreReply::parse(IDLParserContext{"CursorGetMoreReply"}, + ret.removeField("ok")); } const GetMoreCommandRequest _cmd; diff --git a/src/mongo/db/commands/parameters.cpp b/src/mongo/db/commands/parameters.cpp index ccfecb48501..e9478a9501c 100644 --- a/src/mongo/db/commands/parameters.cpp +++ b/src/mongo/db/commands/parameters.cpp @@ -193,7 +193,7 @@ Status setLogComponentVerbosity(const BSONObj& bsonSettings) { GetParameterOptions parseGetParameterOptions(BSONElement elem) { if (elem.type() == BSONType::Object) { - return GetParameterOptions::parse({"getParameter"}, elem.Obj()); + return GetParameterOptions::parse(IDLParserContext{"getParameter"}, elem.Obj()); } if ((elem.type() == BSONType::String) && (elem.valueStringDataSafe() == "*"_sd)) { GetParameterOptions ret; |