summaryrefslogtreecommitdiff
path: root/src/mongo/db/drop.idl
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-12-22 15:30:38 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-22 21:33:49 +0000
commitfefba5d6615cef034a2867035486980fccf2112c (patch)
tree59d6830198328bea530ccb38723126b3c692d81f /src/mongo/db/drop.idl
parent251feeb575e30136547175a8d3eed20e023ea39b (diff)
downloadmongo-fefba5d6615cef034a2867035486980fccf2112c.tar.gz
SERVER-52550 Convert "drop" command to generated base class
Diffstat (limited to 'src/mongo/db/drop.idl')
-rw-r--r--src/mongo/db/drop.idl20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mongo/db/drop.idl b/src/mongo/db/drop.idl
index d6407b6bf4a..aeaddde09a1 100644
--- a/src/mongo/db/drop.idl
+++ b/src/mongo/db/drop.idl
@@ -34,6 +34,24 @@ global:
imports:
- "mongo/idl/basic_types.idl"
+structs:
+ DropReply:
+ description: "The drop command's reply."
+ fields:
+ nIndexesWas:
+ type: int
+ optional: true
+ ns:
+ type: namespacestring
+ optional: true
+ info:
+ type: string
+ optional: true
+ # Include "ok" so mongos can use this struct to parse shard replies.
+ ok:
+ type: safeDouble
+ optional: true
+
commands:
drop:
description: "Parser for the drop command"
@@ -42,4 +60,4 @@ commands:
cpp_name: drop
strict: true
api_version: "1"
- reply_type: OkReply
+ reply_type: DropReply