glusterfsd: Fix coverity issues around unused values
This patch fixes, CID: 1274064, 1274232 The fix is to not add into the return dict the throughput and time values on error computing the same. The pattern applied is the same as when an error occurs during adding either the throughput or the time value to the dict. Change-Id: I33e21e75efbc691f18b818934ef3bf70dd075097 Updates: bz#789278 Signed-off-by: ShyamsundarR <srangana@redhat.com>
This commit is contained in:
parent
f50625e7b0
commit
f179d09326
@ -416,6 +416,8 @@ glusterfs_handle_translator_info_get(rpcsvc_request_t *req)
|
||||
ret = glusterfs_volume_top_write_perf(
|
||||
blk_size, blk_count, xlator_req.name, &throughput, &time);
|
||||
}
|
||||
if (ret)
|
||||
goto cont;
|
||||
ret = dict_set_double(dict, "time", time);
|
||||
if (ret)
|
||||
goto cont;
|
||||
|
Loading…
x
Reference in New Issue
Block a user