[CDRIVER-4139] Using MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED may send invalid "w" value to the server Created: 27/Aug/21  Updated: 31/Mar/22

Status: Backlog
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-769 APM Internal API Closed
is related to CDRIVER-628 Deprecate MONGOC_WRITE_CONCERN_W_ERRO... Closed

 Description   

I believe this dates back to 859bc9b from CDRIVER-769. Therein, _mongoc_write_concern_freeze was changed to always append w to the BSON representation (provided it was not a tag string or "majority").

MONGOC_WRITE_CONCERN_W_ERRORS_IGNORED was deprecated in CDRIVER-628 and is currently documented as a synonym for MONGOC_WRITE_CONCERN_W_UNACKNOWLEDGED. In that case, I think it should serialize as zero in BSON instead of its raw value (-1).


Generated at Wed Feb 07 21:20:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.