summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-11-13 13:41:06 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-13 19:34:57 +0000
commitb670258ac185ecea0492c742f2f50da9d8ab618f (patch)
tree820931f0cd560702b2f28ce460cadc796b16deaf /src/mongo/db/commands.h
parent3251ffe481e2c981e16e9bbf166cb2de7a493e0b (diff)
downloadmongo-b670258ac185ecea0492c742f2f50da9d8ab618f.tar.gz
SERVER-52541 Specify dropDatabase in IDL
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r--src/mongo/db/commands.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h
index e1805991cab..7cbdf08defb 100644
--- a/src/mongo/db/commands.h
+++ b/src/mongo/db/commands.h
@@ -191,10 +191,19 @@ struct CommandHelpers {
const WriteConcernResult& wcResult = WriteConcernResult());
/**
- * Appends passthrough fields from a cmdObj to a given request.
+ * Forward generic arguments from a client request to shards.
*/
- static BSONObj appendPassthroughFields(const BSONObj& cmdObjWithPassthroughFields,
- const BSONObj& request);
+ static BSONObj appendGenericCommandArgs(const BSONObj& cmdObjWithGenericArgs,
+ const BSONObj& request);
+
+ /**
+ * Forward generic reply fields from a shard's reply to the client.
+ */
+ static void appendGenericReplyFields(const BSONObj& replyObjWithGenericReplyFields,
+ const BSONObj& reply,
+ BSONObjBuilder* replyBuilder);
+ static BSONObj appendGenericReplyFields(const BSONObj& replyObjWithGenericReplyFields,
+ const BSONObj& reply);
/**
* Returns a copy of 'cmdObj' with a majority writeConcern appended. If the command object does