~ubuntu-branches/ubuntu/hoary/heartbeat/hoary

« back to all changes in this revision

Viewing changes to membership/ccm/ccmlib_memapi.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-02-24 10:12:16 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050224101216-17p0xnfe5f1tn6bc
Tags: 1.2.3-3ubuntu1
debian/control: Removed raidtools2 build dependency, to help demotion of
raidtools2 to universe.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: ccmlib_memapi.c,v 1.16.2.1 2004/04/20 05:05:35 alan Exp $ */
 
1
/* $Id: ccmlib_memapi.c,v 1.16.2.2 2004/09/11 06:36:34 msoffen Exp $ */
2
2
/* 
3
3
 * ccmlib_memapi.c: Consensus Cluster Membership API
4
4
 *
22
22
 
23
23
#define __CCM_LIBRARY__
24
24
#include <ccmlib.h>
25
 
//#include <syslog.h>
26
 
//#include <clplumbing/cl_log.h>
 
25
/* #include <syslog.h> */
 
26
/* #include <clplumbing/cl_log.h> */
27
27
 
28
28
/* structure to track the membership delivered to client */
29
29
typedef struct mbr_track_s {
413
413
static gboolean
414
414
mem_quorum(mbr_private_t *private, mbr_track_t *mbr)
415
415
{
416
 
        //cl_log(LOG_DEBUG, "n_member=%d, cllm_get_nodecount=%d\n",
417
 
        //      OC_EV_GET_N_MEMBER(mbr), CLLM_GET_NODECOUNT(private->llm));
 
416
        /* cl_log(LOG_DEBUG, "n_member=%d, cllm_get_nodecount=%d\n", */
 
417
        /*      OC_EV_GET_N_MEMBER(mbr), CLLM_GET_NODECOUNT(private->llm)); */
418
418
        if(OC_EV_GET_N_MEMBER(mbr) <
419
419
                (CLLM_GET_NODECOUNT(private->llm)/2+1))
420
420
                return FALSE;