[SERVER-62385] Make WriteConcernOptions immutable Created: 06/Jan/22  Updated: 13/Jan/22  Resolved: 13/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Matt Broadstone Assignee: Matt Broadstone
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Server Serverless 2022-01-10, Server Serverless 2022-01-24
Participants:

 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.



 Comments   
Comment by Matt Broadstone [ 13/Jan/22 ]

Superseded by SERVER-62609 and SERVER-62422

Generated at Thu Feb 08 05:54:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.