[CXX-1357] Add test and implementation for max staleness of -1 specified in URI Created: 02/Jun/17  Updated: 28/Oct/23  Resolved: 26/Jun/17

Status: Closed
Project: C++ Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Task Priority: Major - P3
Reporter: Samuel Rossi (Inactive) Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-1265 Audit driver against Max Staleness Spec Closed

 Description   

We should add a test that ensures that setting a max staleness of -1 in the URI causes our getter to return nullopt rather than -1.

Edit read_preference to be able to set max_staleness to -1 and make sure that if is -1 the URI getter returns a nullopt instead of -1.



 Comments   
Comment by Githook User [ 26/Jun/17 ]

Author:

{u'username': u'iwysiu', u'name': u'Isabella Siu', u'email': u'sakurablossom@blueblueworld.com'}

Message: CXX-1357 Add implementation and test for max staleness of -1 specified in URI
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/0e088df383bb31dff1ca655e406271fb861590ca

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