|
|
a3470f |
From 86db0fb0570a0a0f2b55280c9d1be581f16ab312 Mon Sep 17 00:00:00 2001
|
|
|
a3470f |
From: moagrawa <moagrawa@redhat.com>
|
|
|
a3470f |
Date: Fri, 15 Dec 2017 17:21:59 +0530
|
|
|
a3470f |
Subject: [PATCH 106/128] glusterd: Free up svc->conn on volume delete
|
|
|
a3470f |
|
|
|
a3470f |
Daemons snapd/tierd is maintained on per volume basis and on a volume
|
|
|
a3470f |
delete we should destroy the rpc connection established for the same.
|
|
|
a3470f |
|
|
|
a3470f |
Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014
|
|
|
a3470f |
> BUG: 1522775
|
|
|
a3470f |
> Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
a3470f |
> Reviewed on https://review.gluster.org/18957
|
|
|
a3470f |
> (Cherry pick from commit 36ce4c614a3391043a3417aa061d0aa16e60b2d3)
|
|
|
a3470f |
|
|
|
a3470f |
BUG: 1512470
|
|
|
a3470f |
Signed-off-by: moagrawa <moagrawa@redhat.com>
|
|
|
a3470f |
Change-Id: I21426893bc1c326bf51cb83a68b0ae3c31ea5b9a
|
|
|
a3470f |
Reviewed-on: https://code.engineering.redhat.com/gerrit/126230
|
|
|
a3470f |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
a3470f |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
a3470f |
---
|
|
|
a3470f |
xlators/mgmt/glusterd/src/glusterd-utils.c | 4 ++++
|
|
|
a3470f |
1 file changed, 4 insertions(+)
|
|
|
a3470f |
|
|
|
a3470f |
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
a3470f |
index 1434d64..4b53898 100644
|
|
|
a3470f |
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
a3470f |
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
|
|
|
a3470f |
@@ -1029,6 +1029,10 @@ glusterd_volinfo_delete (glusterd_volinfo_t *volinfo)
|
|
|
a3470f |
if (volinfo->rebal.dict)
|
|
|
a3470f |
dict_unref (volinfo->rebal.dict);
|
|
|
a3470f |
|
|
|
a3470f |
+ /* Destroy the connection object for per volume svc daemons */
|
|
|
a3470f |
+ glusterd_conn_term (&volinfo->snapd.svc.conn);
|
|
|
a3470f |
+ glusterd_conn_term (&volinfo->tierd.svc.conn);
|
|
|
a3470f |
+
|
|
|
a3470f |
gf_store_handle_destroy (volinfo->quota_conf_shandle);
|
|
|
a3470f |
gf_store_handle_destroy (volinfo->shandle);
|
|
|
a3470f |
gf_store_handle_destroy (volinfo->node_state_shandle);
|
|
|
a3470f |
--
|
|
|
a3470f |
1.8.3.1
|
|
|
a3470f |
|