From 2c588f81d452b0d54920a0abbb266c8c1d37e62f 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. >mainline patch : https://review.gluster.org/#/c/18957/ Change-Id: Id1440e39da07b990fdb9b207df18da04b1ca8014 BUG: 1523048 Signed-off-by: Atin Mukherjee (cherry picked from commit 36ce4c614a3391043a3417aa061d0aa16e60b2d3) --- xlators/mgmt/glusterd/src/glusterd-utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index dbc8775e0d4..e627dcfcc2b 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -1026,6 +1026,10 @@ 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); + gf_store_handle_destroy (volinfo->quota_conf_shandle); gf_store_handle_destroy (volinfo->shandle); gf_store_handle_destroy (volinfo->node_state_shandle); -- cgit