OCF RA: Fix syntax error
(cherry picked from commit a9b4a4ff97a96e798de51933fc44f61aa6bc88a3)
This commit is contained in:
parent
7e93369f0c
commit
ea745e62c4
|
|
@ -1608,7 +1608,7 @@ get_monitor() {
|
|||
ocf_log info "${LH} comparing us (start time: $our_start_time, score: $new_score) with $node (start time: $node_start_time, score: $node_score)"
|
||||
if [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -lt $our_start_time ]; then
|
||||
new_score=$((node_score - 10 < new_score ? node_score - 10 : new_score ))
|
||||
elif [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -eq $our_start_time ]
|
||||
elif [ $node_start_time -ne 0 -a $node_score -ne 0 -a $node_start_time -eq $our_start_time ]; then
|
||||
# Do not get promoted if the other node is already master and we have the same start time
|
||||
if is_master $node; then
|
||||
new_score=$((node_score - 10 < new_score ? node_score - 10 : new_score ))
|
||||
|
|
|
|||
Loading…
Reference in New Issue