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

Modify ScopedCollectionAcquisition to be a smart pointer that's passed by value

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Execution EMEA Team 2023-06-26, Execution EMEA Team 2023-07-10

      In order to implement proper getMore functionality with the Shard Role API we need to modify ScopedCollectionAcquisition to be a smart pointer.

      Right now the class is already "smart pointer"-like, but lacks the reference counting logic. This means that it automatically removes the acquisition once it goes out of scope, but this makes implementing getMore impossible since the scope is not preserved anywhere.

            Assignee:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: