Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1357

Add test and implementation for max staleness of -1 specified in URI

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc0
    • Affects Version/s: None
    • Component/s: Testing
    • Labels:
      None

      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.

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: