a3470f
From 084b4754afedff7b3f96f17c6ca19b818b0d5767 Mon Sep 17 00:00:00 2001
a3470f
From: Atin Mukherjee <amukherj@redhat.com>
a3470f
Date: Tue, 2 Jan 2018 20:26:31 +0530
a3470f
Subject: [PATCH 136/139] glusterd: Nullify pmap entry for bricks belonging to
a3470f
 same port
a3470f
a3470f
Commit 30e0b86 tried to address all the stale port issues glusterd had
a3470f
in case of a brick is abruptly killed. For brick multiplexing case
a3470f
because of a bug the portmap entry was not getting removed. This patch
a3470f
addresses the same.
a3470f
a3470f
>upstream mainline patch : https://review.gluster.org/#/c/19119
a3470f
a3470f
Change-Id: Ib020b967a9b92f1abae9cab9492f0cacec59aaa1
a3470f
BUG: 1530325
a3470f
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
a3470f
Reviewed-on: https://code.engineering.redhat.com/gerrit/128884
a3470f
Tested-by: RHGS Build Bot <nigelb@redhat.com>
a3470f
---
a3470f
 xlators/mgmt/glusterd/src/glusterd-pmap.c | 2 +-
a3470f
 1 file changed, 1 insertion(+), 1 deletion(-)
a3470f
a3470f
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c
a3470f
index 4f045ab..c9e6c1b 100644
a3470f
--- a/xlators/mgmt/glusterd/src/glusterd-pmap.c
a3470f
+++ b/xlators/mgmt/glusterd/src/glusterd-pmap.c
a3470f
@@ -392,7 +392,7 @@ remove:
a3470f
          * there's no xprt either, then we have nothing left worth saving and
a3470f
          * can delete the entire entry.
a3470f
          */
a3470f
-        if (!pmap->ports[p].xprt) {
a3470f
+        if (brick_disconnect || !pmap->ports[p].xprt) {
a3470f
                 /* If the signout call is being triggered by brick disconnect
a3470f
                  * then clean up all the bricks (in case of brick mux)
a3470f
                  */
a3470f
-- 
a3470f
1.8.3.1
a3470f