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

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

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.0-rc0
    • Testing
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: