clustered_util::matchesClusterKey should check for compound keys

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2021-11-15, Execution Team 2021-11-29
    • 26
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, matchesClusterKey will return a false positive when provided with a compound index whose first field matches the cluster key

      Eg) clusterKey: {_id: 1}...
      matchesClusterKey({_id: 1, a: -1, ....}, clusteredIndexSpec) => true when it should return false

            Assignee:
            Josef Ahmad
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: