d84cf8
From 9425fd5a49a17a8f91c13632ae055a6510b0b44c Mon Sep 17 00:00:00 2001
d84cf8
From: Sanju Rakonde <srakonde@redhat.com>
d84cf8
Date: Fri, 17 May 2019 14:27:58 +0530
d84cf8
Subject: [PATCH 435/449] glusterd: coverity fix
d84cf8
d84cf8
CID: 1401345 - Unused value
d84cf8
d84cf8
> upstream patch link: https://review.gluster.org/#/c/glusterfs/+/22737/
d84cf8
> updates: bz#789278
d84cf8
> Change-Id: I6b8f2611151ce0174042384b7632019c312ebae3
d84cf8
> Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
d84cf8
d84cf8
BUG: 1787310
d84cf8
Change-Id: I6b8f2611151ce0174042384b7632019c312ebae3
d84cf8
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
d84cf8
Reviewed-on: https://code.engineering.redhat.com/gerrit/202622
d84cf8
Tested-by: RHGS Build Bot <nigelb@redhat.com>
d84cf8
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
d84cf8
---
d84cf8
 xlators/mgmt/glusterd/src/glusterd-utils.c | 2 +-
d84cf8
 1 file changed, 1 insertion(+), 1 deletion(-)
d84cf8
d84cf8
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
d84cf8
index 8b0fc9a..2eb2a76 100644
d84cf8
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
d84cf8
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
d84cf8
@@ -3740,7 +3740,7 @@ glusterd_compare_friend_volume(dict_t *peer_data, int32_t count,
d84cf8
          * deleting a volume, so we shouldn't be trying to create a
d84cf8
          * fresh volume here which would lead to a stale entry
d84cf8
          */
d84cf8
-        if (stage_deleted == 0)
d84cf8
+        if (!ret && stage_deleted == 0)
d84cf8
             *status = GLUSTERD_VOL_COMP_UPDATE_REQ;
d84cf8
         ret = 0;
d84cf8
         goto out;
d84cf8
-- 
d84cf8
1.8.3.1
d84cf8