diff options
author | Mohammed Rafi KC <rkavunga@redhat.com> | 2018-08-18 19:40:46 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-08-20 02:55:03 +0000 |
commit | 8549ba1a3de8bba7c80ea24121fb095cd756c64e (patch) | |
tree | 658f694a41a0a259d549fe28e6013247b3066495 /xlators | |
parent | e7afbfb1cf65da96f3b57427b1bb61b2ebde5bba (diff) |
snapshot:Fix wrong dictionary key in snapshot cleanup code
Snapshot was designed to support multiple volume snapshot,
hence the volume name keys are labelled with volume count.
So the volume key should have a volume count appended with
key
Change-Id: I044d73fc86db0e662dc914669aecfb82a6476fb5
fixes: bz#1618004
Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-snapshot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c index 7adc3c87f77..55fd0336f2b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c +++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c @@ -6514,7 +6514,8 @@ glusterd_do_snap_cleanup (dict_t *dict, char **op_errstr, dict_t *rsp_dict) goto out; } - ret = dict_get_str (dict, "volname", &volname); + /* As of now snapshot of multiple volumes are not supported */ + ret = dict_get_str (dict, "volname1", &volname); if (ret) { gf_msg ("glusterd", GF_LOG_ERROR, 0, GD_MSG_DICT_GET_FAILED, "Unable to get" |