[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

GODRIVER-668

Change-Id: Iaa4e686d86f2a35f043969f1db1889839f958e4f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/fe68735653c695805ad9f61e471dbfc201053d6c

Comment by Kristofer Brandow (Inactive) [ 21/Dec/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/438109.

Generated at Thu Feb 08 08:34:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.