From c90c03e9a22d4e21ac7570482255ab42d7ff188e Mon Sep 17 00:00:00 2001 From: Dan Lambright Date: Thu, 10 Sep 2015 15:25:55 -0400 Subject: cluster/tier fix bug with sql includes introduced by 12031 We accidentally introduced a bug where client translators have a dependency on sql. This broke freebsd smoke tests. Fix is to abstract from the client those dependencies. Change-Id: I7152573a489bacc8f32e6eb139f9ff4408288f5b BUG: 1260730 Signed-off-by: Dan Lambright Reviewed-on: http://review.gluster.org/12155 Tested-by: NetBSD Build System --- xlators/cluster/dht/src/tier.c | 5 +++-- xlators/cluster/dht/src/tier.h | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index ff31c17c7e2..c86eb4f5514 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -470,8 +470,9 @@ tier_process_brick_cbk (brick_list_t *local_brick, void *args) { "DB Params cannot initialized!"); goto out; } - SET_DB_PARAM_TO_DICT(this->name, params_dict, GFDB_SQL_PARAM_DBPATH, - db_path, ret, out); + SET_DB_PARAM_TO_DICT(this->name, params_dict, + (char *) gfdb_methods.get_db_path_key(), + db_path, ret, out); /*Get the db connection*/ conn_node = gfdb_methods.init_db((void *)params_dict, dht_tier_db_type); diff --git a/xlators/cluster/dht/src/tier.h b/xlators/cluster/dht/src/tier.h index 76ff27d5932..d168221fe1d 100644 --- a/xlators/cluster/dht/src/tier.h +++ b/xlators/cluster/dht/src/tier.h @@ -31,7 +31,6 @@ #define TIMER_SECS 3600 #include "gfdb_data_store.h" -#include "gfdb_sqlite3.h" #include #include -- cgit