Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1858

Prohibit :journal option in write concerns

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

      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@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: