summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd.h
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2014-05-05 11:29:12 +0530
committerKaushal M <kaushal@redhat.com>2014-05-08 04:11:24 -0700
commit281d95cb7d53069158eae99392e9e7863c8850fd (patch)
treefe7e82d079acaf517c198d5a9fb759a53f461c24 /xlators/mgmt/glusterd/src/glusterd.h
parenta4b622e0bd60a5e19e73f415a6a64aa6661a971a (diff)
mgmt/glusterd: Prevent spurious brick restarts
Change-Id: I7ee5d18b926d6c31e3e4ea2f5fbe9050c8e1dee8 BUG: 959986 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4954 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaushal M <kaushal@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.h b/xlators/mgmt/glusterd/src/glusterd.h
index ecb8f6b2252..821c9fdd8b7 100644
--- a/xlators/mgmt/glusterd/src/glusterd.h
+++ b/xlators/mgmt/glusterd/src/glusterd.h
@@ -123,12 +123,6 @@ typedef struct {
} nodesrv_t;
typedef struct {
- gf_boolean_t quorum;
- double quorum_ratio;
- uint64_t gl_opt_version;
-} gd_global_opts_t;
-
-typedef struct {
struct _volfile_ctx *volfile;
pthread_mutex_t mutex;
struct list_head peers;
@@ -295,6 +289,12 @@ struct glusterd_replace_brick_ {
typedef struct glusterd_replace_brick_ glusterd_replace_brick_t;
+typedef enum gd_quorum_status_ {
+ NOT_APPLICABLE_QUORUM, //Does not follow quorum
+ MEETS_QUORUM, //Follows quorum and meets.
+ DOESNT_MEET_QUORUM, //Follows quorum and does not meet.
+} gd_quorum_status_t;
+
struct glusterd_volinfo_ {
gf_lock_t lock;
gf_boolean_t is_snap_volume;
@@ -371,6 +371,7 @@ struct glusterd_volinfo_ {
int client_op_version;
pthread_mutex_t reflock;
int refcnt;
+ gd_quorum_status_t quorum_status;
};
typedef enum gd_snap_status_ {