summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr
diff options
context:
space:
mode:
authorSoumya Koduri <skoduri@redhat.com>2015-07-10 11:23:07 +0530
committerKaleb KEITHLEY <kkeithle@redhat.com>2015-07-15 08:08:30 -0700
commit09da0f0870dbb79d6e6dfddbfa452152c510d467 (patch)
tree392d6db51ca10f9ba3c254f77a977fe6356bc323 /xlators/cluster/afr
parent94b0109a8ed55d5aebe0604ffb19cbb583797cf5 (diff)
syncop: Include iatt to 'syncop_link' args
Include iatt to 'syncop_link' args to fetch proper attributes of the newly linked inode. This is backport of the below fix - http://review.gluster.org/11611 Change-Id: If6b92961bd7a89add3791ed3a9b494087348b492 BUG: 1243408 Reviewed-on: http://review.gluster.org/11611 Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Signed-off-by: Soumya Koduri <skoduri@redhat.com> Reviewed-on: http://review.gluster.org/11677 Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'xlators/cluster/afr')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-entry.c b/xlators/cluster/afr/src/afr-self-heal-entry.c
index 13a280fa66c..146c743c67d 100644
--- a/xlators/cluster/afr/src/afr-self-heal-entry.c
+++ b/xlators/cluster/afr/src/afr-self-heal-entry.c
@@ -131,7 +131,7 @@ afr_selfheal_recreate_entry (xlator_t *this, int dst, int source, inode_t *dir,
ret = syncop_lookup (priv->children[dst], &srcloc, 0, 0, 0, 0);
if (ret == 0) {
ret = syncop_link (priv->children[dst], &srcloc, &loc,
- NULL, NULL);
+ &newent, NULL, NULL);
} else {
ret = syncop_readlink (priv->children[source], &srcloc,
&linkname, 4096, NULL, NULL);