Added a sanity test for second_behind
improved sanity test for secs_behind
Added rm for check_slave tmpfile, causing a leak of inode
Other forgotten rm of tmpfile
Adding ALL with special mysql comment for 5.5+ to reset slave
Removed global references to check_slave tmpfile
Increased current master master_score to 1000 to help implement custom rules
After promotion, use unset_master instead of stop slave to allow to complete relaylog execution
Added a check for max_connections error for master monitor
added -A for mysql client
reset slave all is for 5.5.16+
demote shouldnt fail if mysql is not running
force read-only upon startup, if start is long, monitor may think this is the master
added failcount for reader because of issues with VMs
corrected some errors in the reader-failcount meta
added condition on meta_role
Check the is_slave return code properly.
Solve a race condition with monitor op starting slave before change master
merged with upstream
missed merge