diff options
author | Raghavendra G <raghavendra@gluster.com> | 2009-11-18 00:46:39 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-19 02:25:52 -0800 |
commit | 489bba93525f85725e85bdeb94e02ebd7be69772 (patch) | |
tree | 131985ce51b8bf17ea16955580fa15cf223a309a /xlators | |
parent | e1230265306aa39ddeac4c1323087169358c5c6d (diff) |
cluster/distribute: copy the stat structure while copying dentries in readdir_cbk.
- only the transformed inode number was being copied, leaving other fields of
stat 0.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 371 (rm -rf fails on stat-prefetch.)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=371
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index b2cd9086f..2edc67d4e 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2138,6 +2138,8 @@ dht_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto unwind; } + entry->d_stat = orig_entry->d_stat; + dht_itransform (this, prev->this, orig_entry->d_ino, &entry->d_ino); dht_itransform (this, prev->this, orig_entry->d_off, |