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

Pass SerializationContext obj into CursorResponseBuilder

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Server Serverless 2023-05-29, Server Serverless 2023-06-12
    • 3

      CursorResponseBuilder::done() and CursorResponseBuilder::appendCursorResponseObject() build responses with a NamespaceString field that calls `NamespaceStringUtil::serialze()`, which will depend on a `SerializationContext` object to specify serialization behavior.  We need to pass the `SerializationContext` object down the layers in order to have `done()`  and `appendCursorResponseObject()` serialize correctly.

      As the goal of these changes are in pursuit of fixing tests that will fail once serializeForCommands and deserializeForCommands are plumbed in, no new tests are being added for this ticket.

            Assignee:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Reporter:
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: