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

Change RetryType to Type

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: None
    • Component/s: Core API

      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.

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