a3470f
From 8e616a6badedec070098c2bc324e566b1a5d34b1 Mon Sep 17 00:00:00 2001
a3470f
From: Mohammed Rafi KC <rkavunga@redhat.com>
a3470f
Date: Sat, 18 Aug 2018 19:40:46 +0530
a3470f
Subject: [PATCH 354/359] snapshot:Fix wrong dictionary key in snapshot cleanup
a3470f
 code
a3470f
a3470f
Snapshot was designed to support multiple volume snapshot,
a3470f
hence the volume name keys are labelled with volume count.
a3470f
So the volume key should have a volume count appended with
a3470f
key
a3470f
a3470f
>Change-Id: I044d73fc86db0e662dc914669aecfb82a6476fb5
a3470f
>fixes: bz#1618004
a3470f
>Signed-off-by: Mohammed Rafi KC <rkavunga@redhat.com>
a3470f
a3470f
upstream patch: https://review.gluster.org/#/c/glusterfs/+/20854/
a3470f
a3470f
Change-Id: I044d73fc86db0e662dc914669aecfb82a6476fb5
a3470f
BUG: 1615578
a3470f
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/147524
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
---
a3470f
 xlators/mgmt/glusterd/src/glusterd-snapshot.c | 3 ++-
a3470f
 1 file changed, 2 insertions(+), 1 deletion(-)
a3470f
a3470f
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
a3470f
index fdd5012..830a67f 100644
a3470f
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
a3470f
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
a3470f
@@ -6529,7 +6529,8 @@ glusterd_do_snap_cleanup (dict_t *dict, char **op_errstr, dict_t *rsp_dict)
a3470f
                 goto out;
a3470f
         }
a3470f
 
a3470f
-        ret = dict_get_str (dict, "volname", &volname);
a3470f
+        /* As of now snapshot of multiple volumes are not supported */
a3470f
+        ret = dict_get_str (dict, "volname1", &volname);
a3470f
         if (ret) {
a3470f
                 gf_msg ("glusterd", GF_LOG_ERROR, 0,
a3470f
                         GD_MSG_DICT_GET_FAILED, "Unable to get"
a3470f
-- 
a3470f
1.8.3.1
a3470f