From bb8a0664ef36809d8b8e75fcb973a2089e5d08a6 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 23 May 2012 12:59:02 +0530 Subject: distribute: use global synctask 'env' instead of local creating a local synctask_env can lead to creating of many more syncop threads than required. The current syncop logic can handle the scale-up/scale-down of threads depending on the load. Hence, its neater to use global synctask env. Change-Id: Id46f963a0190c0154513317ae03323db155ac15a Signed-off-by: Amar Tumballi BUG: 823774 Reviewed-on: http://review.gluster.com/3412 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/switch.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'xlators/cluster/dht/src/switch.c') diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c index 1738f8423..fe75914f2 100644 --- a/xlators/cluster/dht/src/switch.c +++ b/xlators/cluster/dht/src/switch.c @@ -917,15 +917,6 @@ init (xlator_t *this) goto err; } - /* Create 'syncop' environment */ - conf->env = syncenv_new (0); - if (!conf->env) { - gf_log (this->name, GF_LOG_ERROR, - "failed to create sync environment %s", - strerror (errno)); - goto err; - } - this->local_pool = mem_pool_new (dht_local_t, 128); if (!this->local_pool) { gf_log (this->name, GF_LOG_ERROR, -- cgit