summaryrefslogtreecommitdiffstats
path: root/xlators/storage
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-08-19 08:08:23 +0300
committerAmar Tumballi <amarts@redhat.com>2018-09-04 05:32:10 +0000
commit8b913eb752be422a362329d02dfb5c76754ad151 (patch)
tree16db9121e6f931630f1bf99fb1ef0aeb9ef4d33f /xlators/storage
parent5276e8f27e3021d5da3d3055caed6f9a1d964c93 (diff)
{dht-rebalance|glusterd-geo-rep|glusterd-utils|nfs|bd}.c: no dict_del before dict_set
There is no need to remove an item before re-setting it. Compile-tested only! Change-Id: I2869aec9ebf474859127b8b38d284246e6097e84 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/storage')
-rw-r--r--xlators/storage/bd/src/bd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/xlators/storage/bd/src/bd.c b/xlators/storage/bd/src/bd.c
index 0f4ad16b024..ccb4219785e 100644
--- a/xlators/storage/bd/src/bd.c
+++ b/xlators/storage/bd/src/bd.c
@@ -1148,7 +1148,6 @@ bd_offload_getx_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
gf_asprintf (&bd, "%s:%ld", type, local->size);
local->bdatt->type = gf_strdup (type);
- dict_del (local->dict, BD_XATTR);
dict_del (local->dict, LINKTO);
if (dict_set_dynstr (local->dict, BD_XATTR, bd)) {
op_errno = EINVAL;