7c2869
From 2cf7f8a0216b5364e2f96504a45d66bee964a4cc Mon Sep 17 00:00:00 2001
7c2869
From: moagrawa <moagrawa@redhat.com>
7c2869
Date: Fri, 15 Dec 2017 17:21:59 +0530
7c2869
Subject: [PATCH 638/642] glusterd: Free up svc->conn on volume delete
7c2869
7c2869
Daemons snapd is maintained on per volume basis and on a volume
7c2869
delete we should destroy the rpc connection established for the same.
7c2869
7c2869
Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014
7c2869
> BUG: 1522775
7c2869
> Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
7c2869
> Reviewed on https://review.gluster.org/18957
7c2869
> (Cherry pick from commit 36ce4c614a3391043a3417aa061d0aa16e60b2d3)
7c2869
7c2869
BUG: 1526363
7c2869
Signed-off-by: moagrawa <moagrawa@redhat.com>
7c2869
Change-Id: I82e8d44dc2b33335bd632414a564be53100f0b70
7c2869
Reviewed-on: https://code.engineering.redhat.com/gerrit/125978
7c2869
Tested-by: RHGS Build Bot <nigelb@redhat.com>
7c2869
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
7c2869
---
7c2869
 xlators/mgmt/glusterd/src/glusterd-utils.c | 3 +++
7c2869
 1 file changed, 3 insertions(+)
7c2869
7c2869
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
7c2869
index 6288683..b594b9e 100644
7c2869
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
7c2869
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
7c2869
@@ -994,6 +994,9 @@ glusterd_volinfo_delete (glusterd_volinfo_t *volinfo)
7c2869
         if (volinfo->rebal.dict)
7c2869
                 dict_unref (volinfo->rebal.dict);
7c2869
 
7c2869
+        /* Destroy the connection object for per volume svc daemons */
7c2869
+        glusterd_conn_term (&volinfo->snapd.svc.conn);
7c2869
+
7c2869
         gf_store_handle_destroy (volinfo->quota_conf_shandle);
7c2869
 
7c2869
         glusterd_auth_cleanup (volinfo);
7c2869
-- 
7c2869
2.9.3
7c2869