Prohibit :journal option in write concerns

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.10.0.rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      When creating write concern objects, the option for journal is called :j. The corresponding URI option is called journal. The two are apparently easy enough to confuse that our test suite specifies :journal in write concern spec, which is incorrect usage.

      The WriteConcern module has a number of other validations on write concern options. I think adding a prohibition on :journal as an option will prevent silent incorrect behavior when applications get this option name wrong.

            Assignee:
            Oleg Pudeyev (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: