WriteConcernOptions should use the WriteConcernW type

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0
    • Affects Version/s: 5.3 Desired
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2022-01-24, Server Serverless 2022-02-07
    • 150
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The WriteConcernOptions type has three member variables which are mutually exclusive: wNumNodes, wMode, and now wTags. We also have a WriteConcernW type which wraps a std::variant of possible w value types. Use the WriteConcernW type in WriteConcernOptions, and update the server codebase to switch between variant value types when deciding how to interpret a write concern.

            Assignee:
            Matt Broadstone
            Reporter:
            Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: