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