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

listIndexes fails if an index has the wildcard weight "$**"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Repl 2021-03-08
    • 18

      An index spec's "weights" field is normally an object, but it can also be the string "$**". InĀ SERVER-52545 we updated listIndexes to return an error if any index spec in the catalog does not match its expected format, and we incorrectly required "weights" to always be an object. Update the IDL definition for index specs to permit an object or a string.

      (Note, "weights" has some other surprising behavior which I'm not fixing here. Deferred to SERVER-54712.)

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: