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

Change ReplicationCoordinatorImpl and ReplicationExecutor constructors to take owned objects by unique_ptr

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.2
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2017-02-13

      Description

      The constructors of ReplicationCoordinatorImpl and ReplicationExecutor predate C++11 support in the MongoDB codebase, and so receive bare pointers to objects that they actually own. This task is to change the constructors and some of the associated test infrastructure to transfer ownership by passing unique_ptr, as in more modern components.

        Attachments

          Activity

            People

            Assignee:
            schwerin Andy Schwerin
            Reporter:
            schwerin Andy Schwerin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: