File pacemaker-pengine-treat-reconnect_interval-more-consistently-with-action-intervals.patch of Package pacemaker.19778
commit c996769a3965443ecd2b7b2a94a776d93e6fa6c3
Author: Ken Gaillot <kgaillot@redhat.com>
Date: Wed Mar 7 13:00:13 2018 -0600
Low: pengine: treat reconnect_interval more consistently with action intervals
In particular, the user may specify reconnect_interval the same as action
intervals, including bare seconds, with SI units, or as ISO8601 specifications.
This breaks public API backward compatibility by changing the
"int remote_reconnect_interval" member of pe_resource_t (in seconds) to
"guint remote_reconnect_ms" (in milliseconds).
Index: pacemaker-1.1.18+20180406.19c7be5c7/lib/pengine/complex.c
===================================================================
--- pacemaker-1.1.18+20180406.19c7be5c7.orig/lib/pengine/complex.c
+++ pacemaker-1.1.18+20180406.19c7be5c7/lib/pengine/complex.c
@@ -819,7 +819,7 @@ common_unpack(xmlNode * xml_obj, resourc
if (value) {
/* reconnect delay works by setting failure_timeout and preventing the
* connection from starting until the failure is cleared. */
- (*rsc)->remote_reconnect_interval = (crm_get_msec(value) / 1000);
+ (*rsc)->remote_reconnect_interval = (crm_get_interval(value) / 1000);
/* we want to override any default failure_timeout in use when remote
* reconnect_interval is in use. */
(*rsc)->failure_timeout = (*rsc)->remote_reconnect_interval;