Change ReplicationCoordinatorImpl and ReplicationExecutor constructors to take owned objects by unique_ptr

XMLWordPrintableJSON

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

      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:
            Andy Schwerin
            Reporter:
            Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: