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

Change ReplicationCoordinatorImpl and ReplicationExecutor constructors to take owned objects by unique_ptr

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.2
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Sharding 2017-02-13

      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.

            Assignee:
            schwerin@mongodb.com Andy Schwerin
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: