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

update with same value as existing key in ephemeralForTest radix store should be a no-op

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL

      Description

      Otherwise you can end up with different stores depending on how changes are merged in.

      Case 1:
      base.insert

      {a, a}
      other = base
      me = base
      other.update{a, b}
      merge other to master = {a, b}
      me.update{a, a}

      merge me to master =

      {a, b}

      Case 2:
      base.insert{a, a}
      other = base
      other.update{a, b}

      merge other to master =

      {a, b}

      me = other
      me.update

      {a, a}
      merge me to master = {a, a}

      If the order is Case 1, update need to fail so we know there is nothing to merge in

        Attachments

          Activity

            People

            Assignee:
            henrik.edin Henrik Edin
            Reporter:
            henrik.edin Henrik Edin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: