From cf15c8ab0fab3ad9e37cab544ccbbccd59ab03db Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 20 Mar 2009 12:49:12 -0700 Subject: 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 --- xlators/cluster/dht/src/dht-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 27bac7627..7bce090cb 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; -- cgit