Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1511

Stop mutating old topology on set version/election id updates

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0.rc0
    • Affects Version/s: None
    • Component/s: Spec Comp
    • None

      This code in cluster is problematic:

                  topology.update_max_election_id(description)
                  topology.update_max_set_version(description)
      

      ... since it mutates the previous topology. Figure out where to put the logic in those methods so that it can be invoked without mutating the old topology. Maybe just return the new values.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: