summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/cluster/afr/src/afr-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-common.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/xlators/cluster/afr/src/afr-common.c b/xlators/cluster/afr/src/afr-common.c
index d7bc3e29ee2..2043e11d1e8 100644
--- a/xlators/cluster/afr/src/afr-common.c
+++ b/xlators/cluster/afr/src/afr-common.c
@@ -1957,13 +1957,9 @@ afr_lookup_sh_metadata_wrap (void *opaque)
if (first == -1)
goto out;
- inode = inode_link (local->inode, NULL, NULL, &replies[first].poststat);
- if(!inode)
+ if (afr_selfheal_metadata_by_stbuf (this, &replies[first].poststat))
goto out;
- afr_selfheal_metadata (frame, this, inode);
- inode_unref (inode);
-
afr_local_replies_wipe (local, this->private);
dict = dict_new ();