If I define multiple replica set servers in mongo connections settings mdbc will choke and die trying to connect to "192.168.0.1,192.168.0.2" if replica set option is enabled drush should figure out which is primary and connect to that one by default and also allow option for user to connect to any of the secondaries.

Files: 
CommentFileSizeAuthor
#2 mdbc_replica-1823478-2.patch3.5 KBRok Žlender
Test request sent.
[ View ]
#1 mdbc_replica-1823478-1.patch2.82 KBRok Žlender
Test request sent.
[ View ]

Comments

Status:Active» Needs review
StatusFileSize
new2.82 KB
Test request sent.
[ View ]

Patch supports running drush command on replica set configuration options.

StatusFileSize
new3.5 KB
Test request sent.
[ View ]

Revisited patch created new constant for primary member status value and added a msg to users when connecting to secondary how to send queries against it.