diff options
author | Amar Tumballi <amar@del.gluster.com> | 2009-03-20 12:49:12 -0700 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-03-21 04:05:52 +0530 |
commit | cf15c8ab0fab3ad9e37cab544ccbbccd59ab03db (patch) | |
tree | b3efbe713b5686aaeda84ad8977633a682858c3b /xlators/cluster/dht/src/dht-common.c | |
parent | c20359b5b2a564e83b5830b9a17013e780096e2d (diff) |
fixes issue of hashing to wrong subvolumes in case when a subvolume is down
When a hashed subvolume is down, variable 'subvol' was NULL, but was sent to itransform.
This patch solves this, and readdir is sent to proper subvolume now.
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-common.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 27bac7627f7..7bce090cbd6 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -2067,9 +2067,9 @@ dht_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, goto unwind; } - dht_itransform (this, subvol, orig_entry->d_ino, + dht_itransform (this, prev->this, orig_entry->d_ino, &entry->d_ino); - dht_itransform (this, subvol, orig_entry->d_off, + dht_itransform (this, prev->this, orig_entry->d_off, &entry->d_off); entry->d_type = orig_entry->d_type; |