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

Change the locked AutoGetCollection* helpers to use a shared_ptr<const Collection>, as the lock-free versions, to simplify code

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2023-03-06

      TLDR; this is an attempt to simplify the collection helper code by consolidating underlying raw point and shared pointer to Collection instances to all be shared pointers.

      My targeted goal is to eliminate this type handling wherein the function return type is extracted from a function parameter. There are many changes that would be required to do this, and, if they work, would simplify other code complicated by juggling two possible Collection pointer types (raw pointer and shared_ptr).

      These are some points in the code of interest to eliminate

      I'd like to simplify CollectionPtr as well, which currently handles both raw and shared Collection pointer types.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: