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