-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slave Connections #128
Comments
What kind of functionality are you expecting? I'm wondering what an implementation might look like. |
I'm trying to connect to a mongodb that is secondary and not primary. But this library always depends on a master(primary) connection. I removed this if: https://github.com/mongo-dart/mongo_dart/blob/master/lib/src/network/connection_manager.dart#L29 I would like to have some sort of read preferences (https://docs.mongodb.com/manual/core/read-preference/) or slaveOk (https://docs.mongodb.com/manual/reference/method/rs.slaveOk/). I hope you know what I mean. |
I noticed the same problem and also commented out the lines. I think the only way would be to set a bool allowSecondaryRead on db open and if true to disallow all write function and throw an no primary exeption or something else. |
I'm also having the same problem, has anyone been able to solve it? |
Will you gonna implement slave connections in the near future?
I always recieve a
even with this DbCommand
Without this feature we have to stop our dart experiment. :(
Am I missing something?
Why do you force a master connection?
The text was updated successfully, but these errors were encountered: