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

Create a serialization context util function for BSONObj/opCtx

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Service Arch

    Description

      There are many call sites where we manually build serialization context objects and enumerate the VTS, which isn't intuitive.  Some of these sites also have access to the raw BSONObj, which may contain an extractable expectPrefix field.  Rather than performing these operations manually, we should encapsulate them into a util function that will simply take an opCtx and/or BSONObj and returns a partially completed serialization context object with minimal background knowledge.  For example:

       

      SerializationContext SerializationContext::getPartialSerializationContext(OperationContext*, BSONObj&);
      SerializationContext SerializationContext::getPartialSerializationContext(OperationContext*);

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            hugh.tong@mongodb.com Hugh Tong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: