summaryrefslogtreecommitdiff
path: root/src/mongo/db/coll_mod.idl
diff options
context:
space:
mode:
authorRui Liu <rui.liu@mongodb.com>2021-11-23 21:15:12 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-23 21:42:00 +0000
commit0b5f8fbf748fa7c8da75bd64ac9ca4ed322de321 (patch)
tree6c0839554e2ab57915a8797445412a61a427dd1c /src/mongo/db/coll_mod.idl
parentbe868e5a64d1eae8f27be94b9007a32ac0cfa8fd (diff)
downloadmongo-0b5f8fbf748fa7c8da75bd64ac9ca4ed322de321.tar.gz
SERVER-60694 Move collMod to DDL coordinator infrastructure
Diffstat (limited to 'src/mongo/db/coll_mod.idl')
-rw-r--r--src/mongo/db/coll_mod.idl41
1 files changed, 25 insertions, 16 deletions
diff --git a/src/mongo/db/coll_mod.idl b/src/mongo/db/coll_mod.idl
index 49fdfd6471d..455fff974a0 100644
--- a/src/mongo/db/coll_mod.idl
+++ b/src/mongo/db/coll_mod.idl
@@ -89,23 +89,9 @@ structs:
type: safeBool
unstable: true
-commands:
- collMod:
- description: "Specify collMod Command."
- command_name: collMod
- namespace: concatenate_with_db
- cpp_name: collMod
+ CollModRequest:
+ description: "The collMod command's request."
strict: true
- api_version: "1"
- access_check:
- complex:
- - check: should_ignore_auth_checks
- - privilege:
- resource_pattern: exact_namespace
- action_type: collMod
- - privilege:
- resource_pattern: exact_namespace
- action_type: find
fields:
index:
description: "Index to be modified."
@@ -169,6 +155,8 @@ commands:
optional: true
type: CollModTimeseries
unstable: false
+ # TODO (SERVER-61685): `isTimeseriesNamespace` is not needed for the collMod command but kept
+ # for backward compatibility. Remove this flag after 6.0 branching.
isTimeseriesNamespace:
description: "This flag is set to true when the command was originally sent to
mongos on the time-series view, but got rewritten to target
@@ -183,4 +171,25 @@ commands:
optional: true
type: safeBool
unstable: true
+
+commands:
+ collMod:
+ description: "Specify collMod Command."
+ command_name: collMod
+ namespace: concatenate_with_db
+ cpp_name: collMod
+ strict: true
+ api_version: "1"
+ access_check:
+ complex:
+ - check: should_ignore_auth_checks
+ - privilege:
+ resource_pattern: exact_namespace
+ action_type: collMod
+ - privilege:
+ resource_pattern: exact_namespace
+ action_type: find
+ inline_chained_structs: true
+ chained_structs:
+ CollModRequest: CollModRequest
reply_type: CollModReply