Skip to content

Commit

Permalink
glusterd: group server-quorum related code together
Browse files Browse the repository at this point in the history
Server-quorum implementation was spread in many files.  This patch
brings them all together into a single file, namely
glusterd-server-quorum.c. All exported functions are available via
glusterd-server-quorum.h

Change-Id: I8fd77114b5bc6b05127cb8a6a641e0295f0be7bb
BUG: 1205592
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/9492
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaushal M <kaushal@redhat.com>
  • Loading branch information
Krishnan Parthasarathi authored and kshlm committed Apr 1, 2015
1 parent 2b949eb commit 4b18fba
Show file tree
Hide file tree
Showing 11 changed files with 491 additions and 439 deletions.
5 changes: 3 additions & 2 deletions xlators/mgmt/glusterd/src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ glusterd_la_SOURCES = glusterd.c glusterd-handler.c glusterd-sm.c \
glusterd-proc-mgmt.c glusterd-svc-mgmt.c glusterd-shd-svc.c \
glusterd-nfs-svc.c glusterd-quotad-svc.c glusterd-svc-helper.c \
glusterd-conn-helper.c glusterd-snapd-svc.c glusterd-snapd-svc-helper.c \
glusterd-bitd-svc.c glusterd-scrub-svc.c
glusterd-bitd-svc.c glusterd-scrub-svc.c glusterd-server-quorum.c


glusterd_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la \
Expand All @@ -37,7 +37,8 @@ noinst_HEADERS = glusterd.h glusterd-utils.h glusterd-op-sm.h \
glusterd-svc-mgmt.h glusterd-shd-svc.h glusterd-nfs-svc.h \
glusterd-quotad-svc.h glusterd-svc-helper.h glusterd-snapd-svc.h \
glusterd-snapd-svc-helper.h glusterd-rcu.h glusterd-bitd-svc.h \
glusterd-scrub-svc.h $(CONTRIBDIR)/userspace-rcu/rculist-extra.h
glusterd-scrub-svc.h $(CONTRIBDIR)/userspace-rcu/rculist-extra.h \
glusterd-server-quorum.h

AM_CPPFLAGS = $(GF_CPPFLAGS) -I$(top_srcdir)/libglusterfs/src \
-I$(rpclibdir) -I$(CONTRIBDIR)/rbtree \
Expand Down
1 change: 1 addition & 0 deletions xlators/mgmt/glusterd/src/glusterd-handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "glusterd-sm.h"
#include "glusterd-op-sm.h"
#include "glusterd-utils.h"
#include "glusterd-server-quorum.h"
#include "glusterd-store.h"
#include "glusterd-locks.h"
#include "glusterd-snapshot-utils.h"
Expand Down
1 change: 1 addition & 0 deletions xlators/mgmt/glusterd/src/glusterd-op-sm.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include "glusterd-shd-svc.h"
#include "glusterd-nfs-svc.h"
#include "glusterd-quotad-svc.h"
#include "glusterd-server-quorum.h"

#include <sys/types.h>
#include <signal.h>
Expand Down
1 change: 1 addition & 0 deletions xlators/mgmt/glusterd/src/glusterd-peer-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "glusterd-peer-utils.h"
#include "glusterd-store.h"
#include "glusterd-server-quorum.h"
#include "common-utils.h"

void
Expand Down
Loading

0 comments on commit 4b18fba

Please sign in to comment.