summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:38:00 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:13:02 -0800
commited54528c22193f7e2cf6833bbcd22dc338d02c74 (patch)
treeee29f857ad8f56f62a2227af46354a0698d3c313 /xlators/cluster
parent5493db0d0664b9ed2515758122837c0d93d0f388 (diff)
replicate: Use link's parent ino for post/pre-parent not target dir's
Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/afr/src/afr-dir-write.c2
1 files changed, 1 insertions, 1 deletions
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;