File bug-938545_pacemaker-pengine-fencing-dc-complete.patch of Package pacemaker.9287
commit 6ea004ccac1206840689badfd900c46d536e77e8
Author: Gao,Yan <ygao@suse.com>
Date: Tue Aug 11 16:51:07 2015 +0200
Fix: pengine: Ensure fencing of the DC precedes the STONITH_DONE operation
diff --git a/pengine/allocate.c b/pengine/allocate.c
index ec5a18d..c2e56f9 100644
--- a/pengine/allocate.c
+++ b/pengine/allocate.c
@@ -1495,11 +1495,12 @@ stage6(pe_working_set_t * data_set)
}
}
- if (last_stonith) {
- order_actions(last_stonith, done, pe_order_implies_then);
- } else if (dc_fence) {
+ if (dc_fence) {
order_actions(dc_down, done, pe_order_implies_then);
+
+ } else if (last_stonith) {
+ order_actions(last_stonith, done, pe_order_implies_then);
}
order_actions(done, all_stopped, pe_order_implies_then);