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

Always write all three validator variables in the validator setter functions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc1, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v5.0
    • Execution Team 2021-05-31
    • 168

      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.

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

              Created:
              Updated:
              Resolved: