Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-77727

Remove the unused toString and toBSON functions of CollectionBulkLoader

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-06-12
    • 1

      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. 

       

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: