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

CollModRequest should own BSONObj for CollMod command request

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.2.0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2021-11-15

    Description

      The CollMod command implementation parses and validates the IDL-derived type CollMod into a CollModRequest (with an embedded CollModIndexRequest). These structs contain multiple BSONElement fields that reference the BSONObj generated from the command request.

      Since the cmdObj document is not explicitly referenced outside the CollModRequest and CollModIndexRequest structs, it would be logical in terms of scope and resource lifetime to transfer ownership of the cmdObj into the CollModRequest struct.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: