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

Make WriteConcernOptions immutable

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Server Serverless 2022-01-10, Server Serverless 2022-01-24

    Description

      The WriteConcernOptions class currently exposes all of its internal fields, which makes it difficult to reason about its construction, current state, as well as making testing edge cases difficult. Converting the class to an immutable type will help us avoid confusing bugs, and improve our testing around write concerns.

      Attachments

        Activity

          People

            matt.broadstone@mongodb.com Matt Broadstone
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: