path: root/xlators/cluster/dht/src/tier-common.c
diff options
authorKrutika Dhananjay <>2017-02-09 21:12:17 +0530
committerRaghavendra G <>2017-02-13 01:48:17 -0500
commitc6304c339104b0655473ee928659fdc4fa7cb2d9 (patch)
tree5e789459bfa0208708e0f4eca370f066945b16c3 /xlators/cluster/dht/src/tier-common.c
parent3ec11e0d2fbff4e8e8cbda0aac6d7b4603722e48 (diff)
cluster/dht: Use int8 instead of string to pass DHT_IATT_IN_XDATA_KEY
It is sufficient to pass an int value as opposed to a "yes" against the DHT_IATT_IN_XDATA_KEY key since all posix cares about is whether the key is present in the dict or not. Also note that this patch does not violate backward compatibility since the handling of the key in posix remains untouched. Change-Id: I2f881494a257488709c8c1d2002f2d124ddcc089 BUG: 1390050 Signed-off-by: Krutika Dhananjay <> Reviewed-on: Smoke: Gluster Build System <> CentOS-regression: Gluster Build System <> Reviewed-by: N Balachandran <> Reviewed-by: Pranith Kumar Karampuri <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Raghavendra G <>
Diffstat (limited to 'xlators/cluster/dht/src/tier-common.c')
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/tier-common.c b/xlators/cluster/dht/src/tier-common.c
index b2f3db28f48..1cb7afdd9f9 100644
--- a/xlators/cluster/dht/src/tier-common.c
+++ b/xlators/cluster/dht/src/tier-common.c
@@ -735,8 +735,7 @@ tier_unlink (call_frame_t *frame, xlator_t *this, loc_t *loc, int xflag,
xdata = xdata ? dict_ref (xdata) : dict_new ();
if (xdata) {
- ret = dict_set_dynstr_with_alloc (xdata,
+ ret = dict_set_int8 (xdata, DHT_IATT_IN_XDATA_KEY, 1);
if (ret) {
gf_msg_debug (this->name, 0,
"Failed to set dictionary key %s",