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

Make RoutingTableHistory movable

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: Sharding
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Sharding 2020-08-24

      Description

      As part of the changes on SERVER-46199 the new CollectionCache will require that the cached elements (of RoutingTableHistory type) to be movable. To allow this there are three neccessary changes:

      • Remove the _sequenceNumber on RoutingTableHistory, that way the RoutingTableHistory merge can be implemented as an inmutable operation, which is necessary for the new lookup pattern to be used for the collection cache
      • Remove the const on the RoutingTableHistory class members
      • Add a move constructor and a move assign operator

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              marcos.grillo Marcos José Grillo Ramirez
              Reporter:
              marcos.grillo Marcos José Grillo Ramirez
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: