Closed mtrienis closed 8 years ago
I don't believe that it will handle this situation, but you can give it a try and see. The method in code that handles host selection is in https://github.com/afloyd/mongo-migrate/blob/master/lib/db.js, method "getConnection"
This is probably a duplicate of https://github.com/afloyd/mongo-migrate/issues/45
If I have a primary and secondary node, can I just pass both of the host names? For example,
Will the driver be smart enough to find the primary node when executing the migrations?