From ed54528c22193f7e2cf6833bbcd22dc338d02c74 Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Thu, 25 Feb 2010 15:38:00 +0000 Subject: replicate: Use link's parent ino for post/pre-parent not target dir's Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597 --- xlators/cluster/afr/src/afr-dir-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index 1d7d3f19557..8a6529bfb97 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -1067,7 +1067,7 @@ afr_link (call_frame_t *frame, xlator_t *this, local->cont.link.ino = oldloc->inode->ino; if (oldloc->parent) - local->cont.link.parent_ino = oldloc->parent->ino; + local->cont.link.parent_ino = newloc->parent->ino; local->transaction.fop = afr_link_wind; local->transaction.done = afr_link_done; -- cgit