[GODRIVER-668] Write concern should not be encoded for certain commands based on wire version. Created: 30/Nov/18 Updated: 28/Oct/23 Resolved: 04/Jan/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | CRUD |
| Affects Version/s: | None |
| Fix Version/s: | 0.2.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Divjot Arora (Inactive) | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
command/write.go serializes all non-nil write concerns. Based on https://github.com/mongodb/specifications/blob/master/source/read-write-concern/read-write-concern.rst#other-commands-that-write, it should check the command and wire version to make sure a write concern is valid. |
| Comments |
| Comment by Githook User [ 04/Jan/19 ] |
|
Author: {'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}Message: Ensure write concern not sent when not supported Change-Id: Iaa4e686d86f2a35f043969f1db1889839f958e4f |
| Comment by Kristofer Brandow (Inactive) [ 21/Dec/18 ] |
|
Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/438109. |