From 96fc7f64da2ef09e82845a7ab97574f511a9aae5 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Thu, 3 Dec 2015 12:52:54 +0530 Subject: cluster/tier: fix loading tier.so into glusterd glusterd occasionally loads shared libraries of translators. This failed for tiering due to a reference to dht_methods which is defined as a global variable which is not necessary. The global variable has been removed and this is now a member of dht_conf and is now initialised in the *_init calls. Change-Id: Ifa0a21e3962b5cd8d9b927ef1d087d3b25312953 BUG: 1287842 Signed-off-by: N Balachandran Reviewed-on: http://review.gluster.org/12863 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: Dan Lambright Tested-by: Dan Lambright --- xlators/cluster/dht/src/dht-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/dht/src/dht-common.h') diff --git a/xlators/cluster/dht/src/dht-common.h b/xlators/cluster/dht/src/dht-common.h index 392d2cf163a..4e72557621d 100644 --- a/xlators/cluster/dht/src/dht-common.h +++ b/xlators/cluster/dht/src/dht-common.h @@ -482,7 +482,7 @@ struct dht_conf { gf_boolean_t randomize_by_gfid; char *dthrottle; - dht_methods_t *methods; + dht_methods_t methods; struct mem_pool *lock_pool; -- cgit