From 36ce4c614a3391043a3417aa061d0aa16e60b2d3 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Wed, 6 Dec 2017 18:05:24 +0530 Subject: glusterd: Free up svc->conn on volume delete Daemons like snapd, tierd and gfproxyd are maintained on per volume basis and on a volume delete we should destroy the rpc connection established for them. Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014 BUG: 1522775 Signed-off-by: Atin Mukherjee --- xlators/mgmt/glusterd/src/glusterd-utils.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/mgmt') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 066d2f72f81..38ba20b8fb2 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1027,6 +1027,11 @@ glusterd_volinfo_delete (glusterd_volinfo_t *volinfo) if (volinfo->rebal.dict) dict_unref (volinfo->rebal.dict); + /* Destroy the connection object for per volume svc daemons */ + glusterd_conn_term (&volinfo->snapd.svc.conn); + glusterd_conn_term (&volinfo->tierd.svc.conn); + glusterd_conn_term (&volinfo->gfproxyd.svc.conn); + gf_store_handle_destroy (volinfo->quota_conf_shandle); gf_store_handle_destroy (volinfo->shandle); gf_store_handle_destroy (volinfo->node_state_shandle); -- cgit