summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2017-06-12 11:17:01 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-06-13 08:51:39 +0000
commitc0d4081cf4b90a4316b786cc53263a7c56fdb344 (patch)
treef7ffbe0c6f618bd2ce1d9777e722e033b0952979 /xlators/mgmt
parent778ad0e2bbfe60db32df460590e0c3596fdf1aa5 (diff)
Revert "glusterd: disallow rebalance & remove-brick on a sharded volume"
This reverts commit 8375b3d70d5c6268c6770b42a18b2e1bc09e411e. Now that some of the users have confirmed rebalance works fine without causing corruption of VMs, time to revert the CLI restriction. Change-Id: I45493fcbb1f25fd0fff27b2b3526c42642ccb464 BUG: 1460585 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: https://review.gluster.org/17506 Reviewed-by: Atin Mukherjee <amukherj@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra G <rgowdapp@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-brick-ops.c10
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rebalance.c9
2 files changed, 0 insertions, 19 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
index 21e3377b631..8d4ea13af95 100644
--- a/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-brick-ops.c
@@ -2180,16 +2180,6 @@ glusterd_op_stage_remove_brick (dict_t *dict, char **op_errstr)
case GF_OP_CMD_START:
{
- if (dict_get_str_boolean (volinfo->dict, "features.shard",
- _gf_false)) {
- ret = -1;
- snprintf (msg, sizeof (msg), "remove-brick operation is"
- " not allowed on a sharded volume as it may"
- " lead to a data loss situation.");
- errstr = gf_strdup (msg);
- goto out;
- }
-
if ((volinfo->type == GF_CLUSTER_TYPE_REPLICATE) &&
dict_get (dict, "replica-count")) {
snprintf (msg, sizeof(msg), "Migration of data is not "
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
index fbef1df7eaa..4c24b99d0b8 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c
@@ -696,15 +696,6 @@ glusterd_op_stage_rebalance (dict_t *dict, char **op_errstr)
volname);
goto out;
}
- if (dict_get_str_boolean (volinfo->dict, "features.shard",
- _gf_false)) {
- ret = -1;
- snprintf (msg, sizeof (msg), "rebalance operation is not"
- " allowed on a sharded volume as it may lead"
- " to a data loss situation. Use start force "
- " option to bypass this validation");
- goto out;
- }
case GF_DEFRAG_CMD_START_FORCE:
if (is_origin_glusterd (dict)) {