-
Type:
Task
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Security 2022-02-07, Security 2022-02-21
-
33
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Add skeletons for compactStructuredEncryptionData to mongod and mongos. Also add support for initial rename collection in both mongod and mongos. There is likely the opportunity for a lot of code reuse.
Here is the IDL that describes compactStructuredEncryptionData:
structs: ECOCStats: description: "Stats about records in ECOC compact touched" fields: read : exactInt64 deleted : exactInt64 ECStats: description: "Stats about records in ECC & ESC compact touched" fields: read : exactInt64 inserted : exactInt64 updated : exactInt64 deleted : exactInt64 compactStats: description: "Stats about records in ECC, ECOC and ESC compact touched" fields: ecoc: ECOCStats ecc: ECStats esc: ECStats CompactStructuredEncryptionDataCommandReply: description: 'Reply from the {compactStructuredEncryptionData: ...} command' strict: true fields: stats: compactStats commands: compactStructuredEncryptionData : description: "Parser for the 'compactStructuredEncryptionData' Command" command_name: compactStructuredEncryptionData api_version: "" namespace: concatenate_with_db strict: true reply_type: CompactStructuredEncryptionDataCommandReply fields: compactionTokens: description: "Map of field path to EOCToken" type: object
A new action type “compactStructuredEncryptionData” will be added and this will be included in “readWriteAnyDB”, and “dbOwner”. This actionType will not be added to “dbAdmin” since only the owner of data has the ability to create the compaction tokens which a user in generic dbAdmin may not have the ability to.