[GODRIVER-667] Default write concern should not be appended. Created: 30/Nov/18  Updated: 28/Oct/23  Resolved: 19/Dec/18

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   

If a collection is created with a default write concern:

coll := db.Collection("collName", options.Collection().SetWriteConcern(writeconcern.New())),

write operations on the collection send serialize an empty write concern but should not.



 Comments   
Comment by Githook User [ 19/Dec/18 ]

Author:

{'username': 'skriptble', 'email': 'kris@mongodb.com', 'name': 'Kris Brandow'}

Message: Ensure default write concern is not appended

GODRIVER-667

Change-Id: Ia289f0a894ca7ce97025bc33ba324b6f9e86efd7
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/733dc8b4eb61c4d44657d5007e88f80cc1b16b00

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

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

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