summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.y
diff options
context:
space:
mode:
authorAmar Tumballi <amarts@redhat.com>2018-01-09 16:03:15 +0530
committerAmar Tumballi <amarts@redhat.com>2018-01-17 03:53:37 +0000
commite3a191a0d3ea0706f4827ebdb6e5161623f2c5f1 (patch)
treeca9da3761de87c5ea989b82c2fcfa911cc74d605 /libglusterfs/src/graph.y
parent6f877d04d6b1b9e0e10904c1a9da9e671bccb290 (diff)
dict: add another type to handle backward compatibility
This new type helps to avoid excessive logs. It should be set only in case of * volume graph building (graph.y) * dict unserialize (happens once a dictionary is received on wire in old protocol) All other dict set and get should have proper check and warning logs if there is a mismatch. updates #220 Change-Id: I1cccb304a877aa80c07aaac95f10f5005e35b9c5 Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.y')
-rw-r--r--libglusterfs/src/graph.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.y b/libglusterfs/src/graph.y
index 7df3479d701..ddd2c9672fb 100644
--- a/libglusterfs/src/graph.y
+++ b/libglusterfs/src/graph.y
@@ -239,7 +239,7 @@ volume_option (char *key, char *value)
}
set_value = gf_strdup (value);
- ret = dict_set_dynstr (curr->options, key, set_value);
+ ret = dict_set_option (curr->options, key, set_value);
if (ret == 1) {
gf_msg ("parser", GF_LOG_ERROR, 0,