summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2013-05-02 17:48:51 +0530
committerVijay Bellur <vbellur@redhat.com>2013-05-02 10:58:20 -0700
commit6556b5cf4077dc45a4c59d2d9ee2f23f5d0a80b0 (patch)
treec0028a525ea4ff1f729694224fb049a296f10c28 /xlators/mgmt
parent254181428e5c6f7e689bbceaddf434116960faab (diff)
glusterd: delete "volume-name" from dict before processing the next option
Change-Id: Ib78963c1f43a66dab50b443742979c7c4e4cbc23 BUG: 958790 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/4940 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amarts@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volgen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
index e573497bf77..56ce6b3a108 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
@@ -3453,6 +3453,8 @@ validate_nfsopts (glusterd_volinfo_t *volinfo,
volgen_graph_free (&graph);
out:
+ if (dict_get (val_dict, "volume-name"))
+ dict_del (val_dict, "volume-name");
gf_log (this->name, GF_LOG_DEBUG, "Returning %d", ret);
return ret;
}