summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-07-31 08:43:51 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-02 07:50:05 -0700
commitb4cd88214effe7889b581489d3865ac080d25391 (patch)
tree25893cb104556226b6773ee5e168ca654cb563d7 /xlators/cluster/dht
parent51947922e1803dc4fceb80190faf5e37dcb2b290 (diff)
Remove dead variables.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1070 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1070
Diffstat (limited to 'xlators/cluster/dht')
-rw-r--r--xlators/cluster/dht/src/switch.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c
index a721e4c84b4..5ec9e665731 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,