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

Allow overriding SerializationContext objs constructed in IDL

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2023-05-01

      When the parse(IDLParserContext&, BSONObj&) method is called, we automatically assume this is a command request and construct the serialization context accordingly.  However, this method can also be called when building oplog entries, so we need to be able to override the default serialization context being constructed in parse() by passing a non-default one in via the IDLParserContext.

      This currently affects importCollection and collMod.  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: