From 1e5cc2754d88089be48e68cf70e0e59d6b4c99ca Mon Sep 17 00:00:00 2001 From: Barak Sason Rofman Date: Sun, 24 Nov 2019 18:16:54 +0200 Subject: cluster/afr - coverity issue fix Added a log for a failure in order to avoid "unused variable" coverity issue. fixes: CID#1274209 Change-Id: Ibc6b0ab4bdff482096e42e88fd4c8c7eadfeeadb Updates: bz#789278 Signed-off-by: Barak Sason Rofman --- xlators/cluster/afr/src/afr-self-heald.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/cluster/afr') diff --git a/xlators/cluster/afr/src/afr-self-heald.c b/xlators/cluster/afr/src/afr-self-heald.c index 8b4d2dc9cd1..b067c1bf1b5 100644 --- a/xlators/cluster/afr/src/afr-self-heald.c +++ b/xlators/cluster/afr/src/afr-self-heald.c @@ -1483,6 +1483,11 @@ afr_xl_op(xlator_t *this, dict_t *input, dict_t *output) if (ret == 0) { ret = dict_set_uint64(output, key, cnt); } + if (ret) { + gf_msg(this->name, GF_LOG_ERROR, -ret, + AFR_MSG_DICT_SET_FAILED, + "Could not add cnt to output"); + } op_ret = 0; } } -- cgit