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