summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2019-05-17 14:27:58 +0530
committerAtin Mukherjee <amukherj@redhat.com>2019-05-23 18:18:33 +0000
commit2a31a7130dd866eed5848caaf9588e6461aca836 (patch)
treed5c35e67f4de8a918e7f5c0c434803a9f74e6606
parent38f23ad8333faa2dd0d8ab23104aad4824fbe4a3 (diff)
glusterd: coverity fix
CID: 1401345 - Unused value updates: bz#789278 Change-Id: I6b8f2611151ce0174042384b7632019c312ebae3 Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index d46d01fc522..a9714f03543 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -3561,7 +3561,7 @@ glusterd_compare_friend_volume(dict_t *peer_data, int32_t count,
* deleting a volume, so we shouldn't be trying to create a
* fresh volume here which would lead to a stale entry
*/
- if (stage_deleted == 0)
+ if (!ret && stage_deleted == 0)
*status = GLUSTERD_VOL_COMP_UPDATE_REQ;
goto out;
}