From cfd880b0745be62620299cc49d85c7070767bb6e Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Thu, 26 Jun 2014 11:29:19 +0530 Subject: quotad: Remove dead code client_t is created by server xlator for managing connection related resources. Quotad doesn't do that. So no need to handle anything related to it. Change-Id: I83e6f9e1c57458d60529dc62086bb63642932d49 BUG: 1113403 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/8180 Reviewed-by: Krutika Dhananjay Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/quota/src/quotad-aggregator.c | 6 +----- xlators/features/quota/src/quotad-helpers.c | 6 ------ 2 files changed, 1 insertion(+), 11 deletions(-) (limited to 'xlators/features/quota') diff --git a/xlators/features/quota/src/quotad-aggregator.c b/xlators/features/quota/src/quotad-aggregator.c index a37a3728b55..2c2b8589356 100644 --- a/xlators/features/quota/src/quotad-aggregator.c +++ b/xlators/features/quota/src/quotad-aggregator.c @@ -112,12 +112,8 @@ ret: quotad_aggregator_free_state (state); } - if (frame) { - if (frame->root->client) - gf_client_unref (frame->root->client); - + if (frame) STACK_DESTROY (frame->root); - } if (new_iobref) { iobref_unref (iobref); diff --git a/xlators/features/quota/src/quotad-helpers.c b/xlators/features/quota/src/quotad-helpers.c index fd309911474..9a98ab17a24 100644 --- a/xlators/features/quota/src/quotad-helpers.c +++ b/xlators/features/quota/src/quotad-helpers.c @@ -84,7 +84,6 @@ call_frame_t * quotad_aggregator_get_frame_from_req (rpcsvc_request_t *req) { call_frame_t *frame = NULL; - client_t *client = NULL; GF_VALIDATE_OR_GOTO ("server", req, out); @@ -92,8 +91,6 @@ quotad_aggregator_get_frame_from_req (rpcsvc_request_t *req) if (!frame) goto out; - client = req->trans->xl_private; - frame->root->op = req->procnum; frame->root->unique = req->xid; @@ -102,9 +99,6 @@ quotad_aggregator_get_frame_from_req (rpcsvc_request_t *req) frame->root->gid = req->gid; frame->root->pid = req->pid; - gf_client_ref (client); - frame->root->client = client; - frame->root->lk_owner = req->lk_owner; frame->local = req; -- cgit