diff options
author | Atin Mukherjee <amukherj@redhat.com> | 2017-12-06 18:05:24 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-12-07 10:31:34 +0530 |
commit | fc1104be2d773b373f32462c9277f440af199e69 (patch) | |
tree | 5e3ff8eea88217d6110bab9799dd8b3c39db7dc0 /xlators | |
parent | fb39306a141c0f2370d31abfc459350f55674011 (diff) |
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: 1523050
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 60bfd4d8b42..88dd8347260 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -958,6 +958,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); |