Skip to content

Commit

Permalink
Merge pull request #29 from wenningerk/check_two_node
Browse files Browse the repository at this point in the history
Fix: cluster-servant: move around CHECK_TWO_NODE
  • Loading branch information
wenningerk authored Oct 24, 2017
2 parents 4bd0a66 + a2d5559 commit c3f7dfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sbd-cluster.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
#include <crm/cluster.h>
#include <crm/common/mainloop.h>

#if CHECK_TWO_NODE
#include <glib-unix.h>
#endif

#include "sbd.h"

Expand Down Expand Up @@ -73,13 +75,13 @@ sbd_plugin_membership_dispatch(cpg_handle_t handle,

static bool two_node = false;
static bool ever_seen_both = false;
static int cpg_membership_entries = -1;

#if CHECK_TWO_NODE
#include <corosync/cmap.h>

static cmap_handle_t cmap_handle = 0;
static cmap_track_handle_t track_handle = 0;
static int cpg_membership_entries = -1;
static GSource *cmap_source = NULL;
#endif

Expand Down

0 comments on commit c3f7dfb

Please sign in to comment.