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

CollModRequest should own BSONObj for CollMod command request

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2021-11-15

      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.

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

              Created:
              Updated:
              Resolved: