summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-08-24 02:53:01 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-24 03:09:48 -0700
commitb4ce27c974c02c15bc51373cd93a11de593ceade (patch)
tree43eaa004305f000f5b5c3f775fbbca172ae00e11 /xlators/cluster/afr/src
parent4c3680ad355fa8c5f691eef73eec4f2677829340 (diff)
cluster/afr: Clean up dead assignments.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1086 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1086
Diffstat (limited to 'xlators/cluster/afr/src')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 6125ac0dd05..a6b13f7c991 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -54,10 +54,8 @@ int
afr_examine_dir_sh_unwind (call_frame_t *frame, xlator_t *this)
{
afr_local_t *local = NULL;
- afr_self_heal_t *sh = NULL;
local = frame->local;
- sh = &local->self_heal;
afr_set_opendir_done (this, local->fd->inode);
@@ -228,13 +226,9 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie,
xlator_t *this, int32_t op_ret, int32_t op_errno,
fd_t *fd)
{
- afr_private_t *priv = NULL;
afr_local_t * local = NULL;
int call_count = -1;
- int ret = 0;
-
- priv = this->private;
LOCK (&frame->lock);
{
@@ -251,7 +245,7 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie,
if (call_count == 0) {
if (local->op_ret == 0) {
- ret = afr_fd_ctx_set (this, local->fd);
+ afr_fd_ctx_set (this, local->fd);
if (!afr_is_opendir_done (this, local->fd->inode)) {
@@ -476,7 +470,6 @@ afr_readdir_cbk (call_frame_t *frame, void *cookie,
{
afr_private_t * priv = NULL;
afr_local_t * local = NULL;
- xlator_t ** children = NULL;
gf_dirent_t * entry = NULL;
gf_dirent_t * tmp = NULL;
@@ -484,10 +477,7 @@ afr_readdir_cbk (call_frame_t *frame, void *cookie,
int child_index = -1;
priv = this->private;
- children = priv->children;
-
local = frame->local;
-
child_index = (long) cookie;
if (op_ret != -1) {