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

Always write all three validator variables in the validator setter functions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.0-rc1, 5.1.0-rc0
    • None
    • Fully Compatible
    • ALL
    • v5.0
    • Execution Team 2021-05-31
    • 168

    Description

      When calling setValidator, setValidationLevel or setValidationAction we should write all three variables in the metadata.

      This was how it worked prior to SERVER-56002. When we do a different write there may be a difference on disk depending on if the defaults are written or not.

      This difference is can be observed in a multiversion environment (with or without SERVER-56002) when doing repl rollback.

      Attachments

        Activity

          People

            henrik.edin@mongodb.com Henrik Edin
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: