[GODRIVER-752] Accessors on write concern Created: 07/Jan/19 Updated: 27/Oct/23 Resolved: 28/Jul/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Ted Tuckman | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 1 |
| Labels: | divjot-close | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
It would be helpful to have some more ability to get information about write concerns. Either there could be accessors on the internal fields, or just have an isMajority function to get some information out. This came up in moving the tools and having at least isMajority could be useful for users. In ReadPreference there is the ability to read mode and tag sets, so it seems like WriteConcern should have something similar. |
| Comments |
| Comment by Patrick Freed [ 21/Mar/19 ] |
|
this seems to have been completed as part of this commit: https://github.com/mongodb/mongo-go-driver/commit/8e600a43e1d03673d83e020ecad6543e4935d04f
|