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

openCollection should return CollectionPtr

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2022-10-31

      Collection instances created by openCollection have their lifetime managed by the storage snapshot. We do not need to return a shared_ptr and can return a CollectionPtr to make it easier for the caller by using the same return type as the regular collection lookup functions.

            Assignee:
            will.buerger@mongodb.com Will Buerger
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: