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

Make RoutingTableHistory movable

    • Fully Compatible
    • Sharding 2020-08-24

      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

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

              Created:
              Updated:
              Resolved: