Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1099

Change RetryType to Type

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.1.0
    • None
    • Core API

    Description

      The RetryType is currently used to determine if the driver.Operation needs to do retryable reads or retryable writes. Instead of adding an additional field that would specify if the operation is a read or a write, convert RetryType into Type and convert RetryWrites and RetryReads into Write and Read.

      As follow-on work for GODRIVER-1042, also update the createReadPref method to use the Type information to determine if it should return a read preference at all, e.g. the case where we have a direct connection and are not connected to a mongos, wherein we will send a read preference of primary preferred.

      Attachments

        Activity

          People

            isabella.siu@mongodb.com Isabella Siu (Inactive)
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: