diff options
authorMohammed Rafi KC <>2018-08-18 19:40:46 +0530
committerAtin Mukherjee <>2018-08-20 02:55:03 +0000
commit8549ba1a3de8bba7c80ea24121fb095cd756c64e (patch)
parente7afbfb1cf65da96f3b57427b1bb61b2ebde5bba (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 <>
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"