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

Change RetryType to Type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: Core API
    • Labels:

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: