summaryrefslogtreecommitdiffstats
path: root/rpc
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 /rpc
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 'rpc')
-rw-r--r--rpc/xdr/src/glusterfs-fops.x3
1 files changed, 3 insertions, 0 deletions
diff --git a/rpc/xdr/src/glusterfs-fops.x b/rpc/xdr/src/glusterfs-fops.x
index 1cb2d83c161..8ccc4658f6c 100644
--- a/rpc/xdr/src/glusterfs-fops.x
+++ b/rpc/xdr/src/glusterfs-fops.x
@@ -234,6 +234,9 @@ enum gf_upcall_flags_t {
enum gf_dict_data_type_t {
GF_DATA_TYPE_UNKNOWN,
+ GF_DATA_TYPE_STR_OLD, /* Will be set by volgen and dict-serialize
+ and unserialize. Used to reduce warnings
+ if one is using old protocol */
GF_DATA_TYPE_INT,
GF_DATA_TYPE_UINT,
GF_DATA_TYPE_DOUBLE,