File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ attrd_peer_message(pcmk__node_status_t *peer, xmlNode *xml)
135135 }
136136}
137137
138+ #if SUPPORT_COROSYNC
138139/*!
139140 * \internal
140141 * \brief Callback for when a peer message is received
@@ -190,6 +191,7 @@ attrd_cpg_destroy(gpointer unused)
190191 attrd_shutdown (0 );
191192 }
192193}
194+ #endif // SUPPORT_COROSYNC
193195
194196/*!
195197 * \internal
@@ -487,9 +489,13 @@ attrd_cluster_connect(void)
487489
488490 attrd_cluster = pcmk_cluster_new ();
489491
490- pcmk_cluster_set_destroy_fn (attrd_cluster , attrd_cpg_destroy );
491- pcmk_cpg_set_deliver_fn (attrd_cluster , attrd_cpg_dispatch );
492- pcmk_cpg_set_confchg_fn (attrd_cluster , pcmk__cpg_confchg_cb );
492+ #if SUPPORT_COROSYNC
493+ if (pcmk_get_cluster_layer () == pcmk_cluster_layer_corosync ) {
494+ pcmk_cluster_set_destroy_fn (attrd_cluster , attrd_cpg_destroy );
495+ pcmk_cpg_set_deliver_fn (attrd_cluster , attrd_cpg_dispatch );
496+ pcmk_cpg_set_confchg_fn (attrd_cluster , pcmk__cpg_confchg_cb );
497+ }
498+ #endif // SUPPORT_COROSYNC
493499
494500 pcmk__cluster_set_status_callback (& attrd_peer_change_cb );
495501
You can’t perform that action at this time.
0 commit comments