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

RunCommand should default to Primary ReadPreference

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: None
    • Component/s: Operations
    • Labels:
      None
    • Minor Change

      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).

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: