From 7cd58994262d2d622c1533c6f7a905106a1cf197 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Wed, 25 Mar 2015 10:39:20 +0530 Subject: glusterd: clean up global xaction_peer occurances With http://review.gluster.org/#/c/9972/ there is no more need to maintain xaction_peers in glusterd_conf_t. This patch cleans up code for all the occurances of xaction_peers. Change-Id: I4fbf2df0fa9b8a8751029be36be7f76f6464cc76 BUG: 1204727 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/9980 Tested-by: Gluster Build System Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-utils.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index c41fb9385ad..d9e22125a3a 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -9916,28 +9916,6 @@ glusterd_have_peers () return !cds_list_empty (&conf->peers); } -void -glusterd_op_clear_xaction_peers () -{ - xlator_t *this = NULL; - glusterd_conf_t *priv = NULL; - glusterd_peerinfo_t *peerinfo = NULL; - glusterd_peerinfo_t *tmp = NULL; - - this = THIS; - priv = this->private; - - GF_ASSERT (this); - GF_ASSERT (priv); - - cds_list_for_each_entry_safe (peerinfo, tmp, &priv->xaction_peers, - op_peers_list) { - GF_ASSERT (peerinfo); - cds_list_del_init (&peerinfo->op_peers_list); - } - -} - gf_boolean_t glusterd_is_volume_started (glusterd_volinfo_t *volinfo) { -- cgit