Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1159

RunCommand should default to Primary ReadPreference

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: Operations
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Sprint:
      C# Sprint 14

      Description

      Drivers in general are changing how ReadPreference is used with the generic RunCommand helper method. In particular:

      1. RunCommand should default to Primary (not the ReadPreference in the database settings)
      2. RunCommand should have an overload allowing the user to specify a ReadPreference if desired

      This is slightly backward compatible in the sense that commands that might have been sent to a secondary before will now be sent to the primary (unless you change your code to explicitly specify a ReadPreference when calling RunCommand).

        Attachments

          Activity

            People

            Assignee:
            rstam Robert Stam
            Reporter:
            rstam Robert Stam
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: