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

Add support for detecting master/slave of a replica pair and switch connections if needed

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Using pre-built binaries from 0.082.1.

    Description

      The driver currently makes a connection to the first server specified in the configuration but if that server happens to be the slave then mongodb returns an error of "not master" when performing a write. In a replica pair the master is determined on startup which means the master/slave designation can change around when restarting mongodb.

      Attachments

        Activity

          People

            lanwin Steve Wagner
            dmarien Doug Marien
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: