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 --- rpc/xdr/src/glusterfs-fops.x | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rpc/xdr/src/glusterfs-fops.x') 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, -- cgit