summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-tier.c
diff options
context:
space:
mode:
authorhari gowtham <hgowtham@redhat.com>2017-02-03 15:55:47 +0530
committerAtin Mukherjee <amukherj@redhat.com>2017-02-07 00:12:29 -0500
commitf2133923b8d8851943c5676b88c5ce67725eabe5 (patch)
tree2a2651748582fc67227456c04d7091695ee841dc /xlators/mgmt/glusterd/src/glusterd-tier.c
parenta3a38bb9cd2c17bd955489ae87800f398ef10239 (diff)
Tier: remove warning related to the enum
PROBLEM: In the tier as a service patch the enums for tier (from gf1_op_command and gf_defrag_command) are put into a single enum gf_defrag_command which causes a warning that will make the build fail. FIX: send both the enum and eliminate the warning. Change-Id: I899ff622dfb07134e6459aa65f65ea7252765293 BUG: 1418973 Signed-off-by: hari gowtham <hgowtham@redhat.com> Reviewed-on: https://review.gluster.org/16539 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: hari gowtham <hari.gowtham005@gmail.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-tier.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-tier.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-tier.c b/xlators/mgmt/glusterd/src/glusterd-tier.c
index 03fbbfba8ec..0afdab56c9c 100644
--- a/xlators/mgmt/glusterd/src/glusterd-tier.c
+++ b/xlators/mgmt/glusterd/src/glusterd-tier.c
@@ -1029,9 +1029,10 @@ glusterd_op_stage_tier (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
goto out;
}
- ret = glusterd_remove_brick_validate_bricks (cmd, brick_count,
+ ret = glusterd_remove_brick_validate_bricks (GF_OP_CMD_NONE,
+ brick_count,
dict, volinfo,
- op_errstr);
+ op_errstr, cmd);
if (ret)
goto out;
@@ -1104,9 +1105,10 @@ glusterd_op_stage_tier (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
goto out;
}
- ret = glusterd_remove_brick_validate_bricks (cmd, brick_count,
+ ret = glusterd_remove_brick_validate_bricks (GF_OP_CMD_NONE,
+ brick_count,
dict, volinfo,
- op_errstr);
+ op_errstr, cmd);
if (ret)
goto out;