[CXX-1062] read_concern::acknowledge_string() creates invalid read concern when attempting to set to server default Created: 02/Oct/16  Updated: 06/Apr/17  Resolved: 08/Oct/16

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.0.3

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: J Rassi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates CDRIVER-2122 Issues in documentation for read conc... Closed

 Description   

read_concern::acknowledge_string() is documented to set the read concern level to read_concern::level::k_server_default when the empty string is passed. Instead, it incorrectly sets the read concern level to read_concern::level::k_unknown when the empty string is passed.



 Comments   
Comment by Githook User [ 08/Oct/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1062 read_concern::acknowledge_string("") sets level to default

Fixes a bug where passing the empty string to
read_concern::acknowledge_string() would incorrectly set the read
concern level to read_concern::level::k_unknown, instead of the
correct value of read_concern::level::k_server_default.
Branch: 3.1-dev
https://github.com/mongodb/mongo-cxx-driver/commit/94f5289dc31302f59e397a748fdddf40f8b9f174

Comment by Githook User [ 08/Oct/16 ]

Author:

{u'username': u'jrassi', u'name': u'J. Rassi', u'email': u'rassi@10gen.com'}

Message: CXX-1062 read_concern::acknowledge_string("") sets level to default

Fixes a bug where passing the empty string to
read_concern::acknowledge_string() would incorrectly set the read
concern level to read_concern::level::k_unknown, instead of the
correct value of read_concern::level::k_server_default.
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/94f5289dc31302f59e397a748fdddf40f8b9f174

Comment by J Rassi [ 02/Oct/16 ]

https://github.com/mongodb/mongo-cxx-driver/pull/551

Generated at Wed Feb 07 22:01:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.