diff options
author | Dan Lambright <dlambrig@redhat.com> | 2015-03-30 14:27:44 -0400 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-04-08 07:28:21 +0000 |
commit | a8260044291cb6eee44974d8c52caa9f4cfb3993 (patch) | |
tree | 3b9b0f83bd6ae869a26a75dafdc988196a62d049 /cli/src/cli-cmd-parser.c | |
parent | f0cd1d73c63001740cd7691a77df7631c9b8e8dc (diff) |
glusterd: Support distributed replicated volumes on hot tier
We did not set up the graph properly for hot tiers with replicated
subvolumes. Also add check that the file has not already been moved
by another replicated brick on the same node.
Change-Id: I9adef565ab60f6774810962d912168b77a6032fa
BUG: 1206517
Signed-off-by: Dan Lambright <dlambrig@redhat.com>
Reviewed-on: http://review.gluster.org/10054
Reviewed-by: Joseph Fernandes <josferna@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Diffstat (limited to 'cli/src/cli-cmd-parser.c')
-rw-r--r-- | cli/src/cli-cmd-parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 7c03ae228fd..a334fd931bf 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -1441,7 +1441,7 @@ out: int32_t cli_cmd_volume_add_brick_parse (const char **words, int wordcount, - dict_t **options) + dict_t **options, int *ret_type) { dict_t *dict = NULL; char *volname = NULL; @@ -1559,6 +1559,9 @@ parse_bricks: *options = dict; out: + if (ret_type) + *ret_type = type; + if (ret) { gf_log ("cli", GF_LOG_ERROR, "Unable to parse add-brick CLI"); if (dict) |