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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      Using pre-built binaries from 0.082.1.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Steve Wagner
            Reporter:
            Doug Marien
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: