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

sh.removeTagRange ignores the tagName parameter

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Sharding EMEA 2023-05-29, Sharding EMEA 2023-06-12, Sharding EMEA 2023-06-26, Sharding EMEA 2023-07-10

      The command removeTagRange(nss, min, max, tagName) from util_sh.js removes the range independently of the given tag name; the tagName parameter is ignored. This command (removeTagRange) is an alias for removeRangeFromZone. On the other hand, removeRangeFromZone(nss, min, max) from the mongo shell removes the range from the tag without passing this as a parameter. It can be done this way because there is a 1:N relationship between tags - ranges. One range can only belong to one tag, thus there is no need to have the tag name to remove a range.

       
      The goals of this ticket:

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            pol.pinol@mongodb.com Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: