summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-dir-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-read.c')
-rw-r--r--xlators/cluster/afr/src/afr-dir-read.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c
index 24227c33b..fab60b66e 100644
--- a/xlators/cluster/afr/src/afr-dir-read.c
+++ b/xlators/cluster/afr/src/afr-dir-read.c
@@ -59,9 +59,6 @@ afr_examine_dir_sh_unwind (call_frame_t *frame, xlator_t *this)
afr_set_opendir_done (this, local->fd->inode);
- /* let self-heal's local cleanup free this */
- local->cont.opendir.checksum = NULL;
-
AFR_STACK_UNWIND (opendir, frame, local->op_ret,
local->op_errno, local->fd);
@@ -153,11 +150,6 @@ out:
if (__checksums_differ (local->cont.opendir.checksum,
priv->child_count)) {
- /* self-heal will call AFR_STACK_DESTROY and
- thus unref local->fd, so ref it here */
-
- local->fd = fd_ref (local->fd);
-
sh->need_entry_self_heal = _gf_true;
sh->forced_merge = _gf_true;
sh->mode = local->fd->inode->st_mode;