summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-05-06 11:43:33 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-06 11:43:33 +0530
commitf6862d75d1ca50b12372d5f9c3e651d6f74c5900 (patch)
treed0fae89b6209725a081e580e529ede283a02c8dc /xlators
parent3f3dea5f23e2b49ac8ad14bf8dd34dfadf6a72f5 (diff)
afr self-heal: update file size of the returning stat buf with source file's size
Diffstat (limited to 'xlators')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c
index 6e0ff33..2b22727 100644
--- a/xlators/cluster/afr/src/afr-self-heal-data.c
+++ b/xlators/cluster/afr/src/afr-self-heal-data.c
@@ -829,6 +829,7 @@ afr_sh_data_fix (call_frame_t *frame, xlator_t *this)
}
sh->source = source;
+ local->cont.lookup.buf.st_size = sh->buf[source].st_size;
/* detect changes not visible through pending flags -- JIC */
for (i = 0; i < priv->child_count; i++) {