File pacemaker-crmd-avoid-DC-sending-offer-to-itself-twice.patch of Package pacemaker.14737

commit 268f70f9ab644783a8038aa82bcca3628cc942dc
Author: Ken Gaillot <kgaillot@redhat.com>
Date:   Mon Apr 17 14:39:19 2017 -0500

    Low: crmd: avoid DC sending offer to itself twice

diff --git a/crmd/join_dc.c b/crmd/join_dc.c
index 71311de2c..999996d6c 100644
--- a/crmd/join_dc.c
+++ b/crmd/join_dc.c
@@ -242,8 +242,10 @@ do_dc_join_offer_one(long long action,
     /* always offer to the DC (ourselves)
      * this ensures the correct value for max_generation_from
      */
-    member = crm_get_peer(0, fsa_our_uname);
-    join_make_offer(NULL, member, NULL);
+    if (strcmp(join_to, fsa_our_uname) != 0) {
+        member = crm_get_peer(0, fsa_our_uname);
+        join_make_offer(NULL, member, NULL);
+    }
 
     /* this was a genuine join request, cancel any existing
      * transition and invoke the PE
openSUSE Build Service is sponsored by