summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/nsr-server/src/nsr.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/nsr-server/src/nsr.c')
-rw-r--r--xlators/cluster/nsr-server/src/nsr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/cluster/nsr-server/src/nsr.c b/xlators/cluster/nsr-server/src/nsr.c
index eda9e555a..85eba09b5 100644
--- a/xlators/cluster/nsr-server/src/nsr.c
+++ b/xlators/cluster/nsr-server/src/nsr.c
@@ -591,6 +591,9 @@ nsr_init (xlator_t *this)
goto err;
}
+
+ GF_OPTION_INIT ("quorum-percent", priv->quorum_pct, percent, err);
+
GF_OPTION_INIT ("subvol-uuid", priv->subvol_uuid, str, err);
gf_log (this->name, GF_LOG_INFO, "subvol_uuid = %s", priv->subvol_uuid);
if (gf_asprintf(&priv->leader_key,"%s:leader",priv->subvol_uuid) <= 0) {
@@ -800,5 +803,10 @@ struct volume_options options[] = {
.type = GF_OPTION_TYPE_STR,
.description = "UUID for this NSR (sub)volume"
},
+ { .key = {"quorum-percent"},
+ .type = GF_OPTION_TYPE_PERCENT,
+ .default_value = "50.0",
+ .description = "percentage of rep_count-1 that must be up"
+ },
{ .key = {NULL} },
};