Skip to content

Commit 2ddaaa2

Browse files
author
Jervin R
committed
Fixing race condition on monitor, issue #42
1 parent 21af095 commit 2ddaaa2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agents/mysql_prm56

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,6 +1301,9 @@ mysql_monitor() {
13011301
# this is a probe and this server is a master so need to set master_score
13021302
$CRM_MASTER -v $((${OCF_RESKEY_max_slave_lag}+1000))
13031303
fi
1304+
1305+
set_reader_attr 1
1306+
13041307
return $OCF_RUNNING_MASTER
13051308
else
13061309
ocf_log debug "MySQL monitor succeeded";

0 commit comments

Comments
 (0)