From b4cd88214effe7889b581489d3865ac080d25391 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Sat, 31 Jul 2010 08:43:51 +0000 Subject: Remove dead variables. Signed-off-by: Sachidananda Urs Signed-off-by: Anand V. Avati BUG: 1070 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1070 --- xlators/cluster/dht/src/switch.c | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 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 a721e4c84..5ec9e6657 100644 --- a/xlators/cluster/dht/src/switch.c +++ b/xlators/cluster/dht/src/switch.c @@ -308,6 +308,10 @@ switch_lookup (call_frame_t *frame, xlator_t *this, */ ret = dict_set_uint32 (local->xattr_req, "trusted.glusterfs.dht", 4 * 4); + if (ret < 0) + gf_log (this->name, GF_LOG_WARNING, + "failed to set dict value for " + "trusted.glusterfs.dht"); for (i = 0; i < layout->cnt; i++) { subvol = layout->list[i].xlator; @@ -323,9 +327,17 @@ switch_lookup (call_frame_t *frame, xlator_t *this, do_fresh_lookup: ret = dict_set_uint32 (local->xattr_req, "trusted.glusterfs.dht", 4 * 4); - + if (ret < 0) + gf_log (this->name, GF_LOG_WARNING, + "failed to set dict value for " + "trusted.glusterfs.dht"); + ret = dict_set_uint32 (local->xattr_req, "trusted.glusterfs.dht.linkto", 256); + if (ret < 0) + gf_log (this->name, GF_LOG_WARNING, + "failed to set dict value for " + "trusted.glusterfs.dht.linkto"); if (!hashed_subvol) { gf_log (this->name, GF_LOG_DEBUG, @@ -385,12 +397,8 @@ switch_create_linkfile_create_cbk (call_frame_t *frame, void *cookie, struct iatt *postparent) { dht_local_t *local = NULL; - call_frame_t *prev = NULL; - dht_conf_t *conf = NULL; local = frame->local; - prev = cookie; - conf = this->private; if (op_ret == -1) goto err; @@ -494,12 +502,8 @@ switch_mknod_linkfile_cbk (call_frame_t *frame, void *cookie, xlator_t *this, struct iatt *postparent) { dht_local_t *local = NULL; - call_frame_t *prev = NULL; - dht_conf_t *conf = NULL; local = frame->local; - prev = cookie; - conf = this->private; if (op_ret >= 0) { STACK_WIND (frame, dht_newfile_cbk, -- cgit