summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarak Sason Rofman <bsasonro@redhat.com>2019-11-24 18:16:54 +0200
committerRavishankar N <ravishankar@redhat.com>2019-11-28 15:30:37 +0000
commit1e5cc2754d88089be48e68cf70e0e59d6b4c99ca (patch)
tree829db9fe3bb419a086207c18dc46cea4b73ccbc4
parent3a8969b852a70bc05887c764474039279ceb23ff (diff)
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 <bsasonro@redhat.com>
-rw-r--r--xlators/cluster/afr/src/afr-self-heald.c5
1 files changed, 5 insertions, 0 deletions
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;
}
}