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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2021-03-08
    • 18

    Description

      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.)

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: