Skip to content

Conversation

@timvaillancourt
Copy link
Contributor

@timvaillancourt timvaillancourt commented Sep 13, 2017

  1. Make sure the score multiplier is a float. It breaks when using numbers larger than 10 (1.0.3: Setting replication.max_lag_secs in YAML-config causes Replset:find_secondary to have score '0' for all nodes #177).
  2. Throw exception if the winning backup secondary has score zero/0 to prevent any other issues selecting the wrong node in the future.
  3. Create constants for MongoDB replset state integers to clean up code.

Resolves issue #177.

@dbmurphy dbmurphy merged commit ea5626a into Percona-Lab:master Sep 20, 2017
@timvaillancourt timvaillancourt deleted the 1.2.0-issue_177 branch September 20, 2017 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants