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

Convert member variable from migrationId in MigrationDestinationManager to boost::optional

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v4.4
    • Sharding 2020-03-09, Sharding 2020-03-23

      Currently, the migrationId member variable is stored as a normal member variable of the MigrationDestinationManager class. However, it's undefined at construction time as it gets initialized with the state passed in from the recvChunkStart command. So it should be converted to a boost::optional so that it doesn't have to make the MigrationDestinationManager a friend.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: