summaryrefslogtreecommitdiff
path: root/src/mongo/db/coll_mod.idl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/coll_mod.idl')
-rw-r--r--src/mongo/db/coll_mod.idl41
1 files changed, 16 insertions, 25 deletions
diff --git a/src/mongo/db/coll_mod.idl b/src/mongo/db/coll_mod.idl
index 455fff974a0..49fdfd6471d 100644
--- a/src/mongo/db/coll_mod.idl
+++ b/src/mongo/db/coll_mod.idl
@@ -89,9 +89,23 @@ structs:
type: safeBool
unstable: true
- CollModRequest:
- description: "The collMod command's request."
+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
fields:
index:
description: "Index to be modified."
@@ -155,8 +169,6 @@ structs:
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
@@ -171,25 +183,4 @@ structs:
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