diff options
author | Rui Liu <rui.liu@mongodb.com> | 2021-12-22 16:36:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-22 17:15:30 +0000 |
commit | d6f2b64decf02397546427f6574f581e96c52d5b (patch) | |
tree | 3516dedf28b970ef6d2cddfad4fdb3887075783f /src/mongo/db/coll_mod.idl | |
parent | d269dd586a99b2e6c05710543c66f958afa7ffe4 (diff) | |
download | mongo-d6f2b64decf02397546427f6574f581e96c52d5b.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.idl | 41 |
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 |