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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Storage
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            backlog-server-execution Backlog - Storage Execution Team
            Reporter:
            dianna.hohensee Dianna Hohensee
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: