diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-07-16 15:23:52 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-07-17 18:03:33 +0000 |
commit | de02b57442117c5410df8186c87abe5965a6bb5f (patch) | |
tree | 45e9fd6412920ad91464f996c9088db78b431121 /xlators/cluster/dht | |
parent | b9a5d85d15ed82477a2491e55d6322e3d0d3d29a (diff) |
dht: delete tier related internal xattr in dht_getxattr_cbk
Use dict_del instead of GF_REMOVE_INTERNAL_XATTR.
For problem and fix related information see here -
https://review.gluster.org/20450.
This patch have some modification as requested by reviewers on already
merged patch : https://review.gluster.org/20450.
Change-Id: I50c263e3411354bb9c1e028b64b9ebfd755dfe37
fixes: bz#1597563
Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 5edd0da33ba..cd129d0f2d5 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4838,8 +4838,7 @@ dht_getxattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, } if (frame->root->pid >= 0 && dht_is_tier_xlator (this)) { - GF_REMOVE_INTERNAL_XATTR - ("trusted.tier.fix.layout.complete", xattr); + dict_del(xattr, GF_XATTR_TIER_LAYOUT_FIXED_KEY); } if (frame->root->pid >= 0) { |