mongodb_replica_set
13.1 KB
-
Refactor our logic into two functions and two loops · 7eaaa323
I believe the loops will be easier to debug in the long run. Essentially, we have a shallow compare loop in check_config_subset and then a deep compare loop in is_member_subset. Both functions allow extra information in the config that comes back from Mongo, since Mongo tracks things like votes: slaveDelay: etc that may not be reflected in the configuration you pass in.
Kevin Falcone committed