[SERVER-73109] Build idl infrastructure to pass context into nss serializers Created: 19/Jan/23  Updated: 29/Oct/23  Resolved: 03/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Hugh Tong (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-74284 Fix existing tests for command serial... Closed
is depended on by SERVER-76084 Create targeted tests for command de/... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-02-06, Server Serverless 2023-02-20, Server Serverless 2023-03-06
Participants:
Story Points: 5

 Description   

Currently, we use NamespaceStringUtil::deserialize to parse NamespaceStrings read both from command requests and from on-disk state. These should actually follow separate rules, so we should create separate functions. For now, we can leave the behavior as the same (to be changed in SERVER-70740), but this ticket should focus on creating the separate functions, and ensuring we change out existing calls to deserialize to call the correct function. Note that we can only specify one deserialize function for the namespace_string type defined in basic_types.idl, so we may need to have some sort of function that takes in info about whether we're parsing a command type or not.



 Comments   
Comment by Githook User [ 02/Mar/23 ]

Author:

{'name': 'Hugh Tong', 'email': 'hugh.tong@mongodb.com', 'username': 'cortrain'}

Message: SERVER-73109 Build idl infrastructure to pass context to nss serializers
Branch: master
https://github.com/mongodb/mongo/commit/95069850eaaa9a1eacf20d0ac082e4773da97ce3

Generated at Thu Feb 08 06:23:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.