diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-01-05 13:51:18 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-01-17 00:00:11 +0000 |
commit | 9404b0de3fd8ab5adc3a531d4cb37b56e1e3908f (patch) | |
tree | b01d08009acb12182f411a4d0edb5b70b15a5cd4 /xlators/features/trash/src/trash.c | |
parent | 7ba7a4b27d124f4ee16fe4776a4670cd5b0160c4 (diff) |
core: fix some of the dict_{get,set} with proper APIs
updates #220
Change-Id: I6e25dbb69b2c7021e00073e8f025d212db7de0be
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'xlators/features/trash/src/trash.c')
-rw-r--r-- | xlators/features/trash/src/trash.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/features/trash/src/trash.c b/xlators/features/trash/src/trash.c index 3baa828143a..cfdcc6ff5fc 100644 --- a/xlators/features/trash/src/trash.c +++ b/xlators/features/trash/src/trash.c @@ -553,8 +553,7 @@ trash_internalop_dir_lookup_cbk (call_frame_t *frame, void *cookie, ret = ENOMEM; goto out; } - ret = dict_set_dynptr (dict, "gfid-req", gfid_ptr, - sizeof (uuid_t)); + ret = dict_set_gfuuid (dict, "gfid-req", *gfid_ptr, false); if (ret) { gf_log (this->name, GF_LOG_ERROR, "setting key gfid-req failed"); @@ -692,8 +691,7 @@ trash_dir_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, /* Fixed gfid is set for trash directory with * this function */ - ret = dict_set_dynptr (dict, "gfid-req", gfid_ptr, - sizeof (uuid_t)); + ret = dict_set_gfuuid (dict, "gfid-req", *gfid_ptr, false); if (ret) { gf_log (this->name, GF_LOG_ERROR, "setting key gfid-req failed"); |