In sub pgsql_promote, after the promotion has succeeded, we force a "hard safe check" using pgsql_monitor and OCF_CHECK_LEVEL=10.
At this point, we already had a return code from pgsql_monitor showing that the promotion succeeded, and OCF_CHECK_LEVEL is currently always configured to do a "hard" check (also cf. pgsql_monitor and _confirm_role todos).
Thus, this new call to pgsql_monitor is useless, unless we adapt the way we use OCF_CHECK_LEVEL in other places.
In sub
pgsql_promote
, after the promotion has succeeded, we force a "hard safe check" using pgsql_monitor and OCF_CHECK_LEVEL=10. At this point, we already had a return code from pgsql_monitor showing that the promotion succeeded, and OCF_CHECK_LEVEL is currently always configured to do a "hard" check (also cf. pgsql_monitor and _confirm_role todos). Thus, this new call to pgsql_monitor is useless, unless we adapt the way we useOCF_CHECK_LEVEL
in other places.