74b1de
From ff5f06d6ba5ac87094ae5df435d1cfb38802e7ca Mon Sep 17 00:00:00 2001
74b1de
From: N Balachandran <nbalacha@redhat.com>
74b1de
Date: Tue, 18 Jun 2019 15:33:29 +0530
74b1de
Subject: [PATCH 213/221] cluster/dht: Strip out dht xattrs
74b1de
74b1de
Some internal DHT xattrs were not being
74b1de
removed when calling getxattr in pass-through mode.
74b1de
This has been fixed.
74b1de
74b1de
upstream patch: https://review.gluster.org/#/c/glusterfs/+/22889/
74b1de
74b1de
>Change-Id: If7e3dbc7b495db88a566bd560888e3e9c167defa
74b1de
>fixes: bz#1721435
74b1de
>Signed-off-by: N Balachandran <nbalacha@redhat.com>
74b1de
74b1de
74b1de
BUG: 1721357
74b1de
Change-Id: I29bce7ea78bb4fd3b493404282cb2c48ef0bf4ee
74b1de
Signed-off-by: N Balachandran <nbalacha@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/174699
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
74b1de
---
74b1de
 xlators/cluster/dht/src/dht-common.c | 2 ++
74b1de
 1 file changed, 2 insertions(+)
74b1de
74b1de
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c
74b1de
index e1edb38..9a6ea5b 100644
74b1de
--- a/xlators/cluster/dht/src/dht-common.c
74b1de
+++ b/xlators/cluster/dht/src/dht-common.c
74b1de
@@ -11216,6 +11216,8 @@ dht_pt_getxattr_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
74b1de
 
74b1de
     conf = this->private;
74b1de
     dict_del(xattr, conf->xattr_name);
74b1de
+    dict_del(xattr, conf->mds_xattr_key);
74b1de
+    dict_del(xattr, conf->commithash_xattr_name);
74b1de
 
74b1de
     if (frame->root->pid >= 0) {
74b1de
         GF_REMOVE_INTERNAL_XATTR("trusted.glusterfs.quota*", xattr);
74b1de
-- 
74b1de
1.8.3.1
74b1de