diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-01-09 16:03:15 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-01-17 03:53:37 +0000 |
commit | e3a191a0d3ea0706f4827ebdb6e5161623f2c5f1 (patch) | |
tree | ca9da3761de87c5ea989b82c2fcfa911cc74d605 /libglusterfs/src/dict.h | |
parent | 6f877d04d6b1b9e0e10904c1a9da9e671bccb290 (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/dict.h')
-rw-r--r-- | libglusterfs/src/dict.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h index dfd4baf25ab..ab8a8a56352 100644 --- a/libglusterfs/src/dict.h +++ b/libglusterfs/src/dict.h @@ -238,6 +238,7 @@ GF_MUST_CHECK int dict_get_bin (dict_t *this, char *key, void **ptr); GF_MUST_CHECK int dict_set_bin (dict_t *this, char *key, void *ptr, size_t size); GF_MUST_CHECK int dict_set_static_bin (dict_t *this, char *key, void *ptr, size_t size); +GF_MUST_CHECK int dict_set_option (dict_t *this, char *key, char *str); GF_MUST_CHECK int dict_set_str (dict_t *this, char *key, char *str); GF_MUST_CHECK int dict_set_dynstr (dict_t *this, char *key, char *str); GF_MUST_CHECK int dict_set_dynstr_with_alloc (dict_t *this, char *key, const char *str); |