[SERVER-77727] Remove the unused toString and toBSON functions of CollectionBulkLoader Created: 01/Jun/23  Updated: 29/Oct/23  Resolved: 08/Jun/23

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

Type: Task Priority: Minor - P4
Reporter: Sophia Tan Assignee: Sophia Tan
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-74488 Make NamespaceString::toString() private Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-06-12
Participants:
Story Points: 1

 Description   

The toString and toBSON functions of CollectionBulkLoader are not used by any other codes. Its subclass overrides these two functions in which serialize nss to string. It's impossible to get to know how to correctly serialize the nss in multitenancy environment as we enforce the caller to pass in serialization context or call `toStringFor*()` to indicate the target. 

We'd better to remove these two functions from the code base. It will be help us to keep the code clean and easy to be maintained. 

 



 Comments   
Comment by Githook User [ 08/Jun/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-77727 Remove the unused toString and toBSON functions of CollectionBulkLoader
Branch: master
https://github.com/mongodb/mongo/commit/1a77d68971fbfe6937677e56b2cbdd18c77c3e63

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