[GODRIVER-2499] Use a nested struct for default transaction options Created: 21/Jul/22 Updated: 08/Jan/24 |
|
| Status: | Blocked |
| Project: | Go Driver |
| Component/s: | Sessions |
| Affects Version/s: | None |
| Fix Version/s: | 2.0.0 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Benji Rewis (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Epic Link: | Go Driver 2.0: Driver | ||||||||||||||||||||
| Backwards Compatibility: | Major Change | ||||||||||||||||||||
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
||||||||||||||||||||
| Description |
|
The SessionOptions struct has fields DefaultReadConcern and DefaultWriteConcern that only apply to transactions started within the session and not to any operation within the session as the names might suggest. We should change the name of these fields to represent that they only apply to transactions or put them within an embedded DefaultTransactionOptions struct within SessionOptions. |