From e3a191a0d3ea0706f4827ebdb6e5161623f2c5f1 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 9 Jan 2018 16:03:15 +0530 Subject: 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 --- libglusterfs/src/graph.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libglusterfs/src/graph.y') 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, -- cgit