From 1473491b576700bb3891abb8adb49e0c31cef8bc Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 20 Sep 2010 07:28:30 +0000 Subject: cluster/afr: print correct offset in debug message during diff self-heal. Signed-off-by: Raghavendra G Signed-off-by: Vijay Bellur BUG: 960 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=960 --- xlators/cluster/afr/src/afr-self-heal-algorithm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xlators/cluster/afr/src/afr-self-heal-algorithm.c b/xlators/cluster/afr/src/afr-self-heal-algorithm.c index 7aeb98736a1..0f7570dc29c 100644 --- a/xlators/cluster/afr/src/afr-self-heal-algorithm.c +++ b/xlators/cluster/afr/src/afr-self-heal-algorithm.c @@ -265,7 +265,7 @@ sh_full_read_write (call_frame_t *frame, xlator_t *this, off_t offset) rw_frame->local = rw_local; rw_sh = &rw_local->self_heal; - rw_sh->offset = sh->offset; + rw_sh->offset = offset; rw_sh->sh_frame = frame; STACK_WIND_COOKIE (rw_frame, sh_full_read_cbk, @@ -637,7 +637,7 @@ sh_diff_read_cbk (call_frame_t *rw_frame, void *cookie, gf_log (this->name, GF_LOG_TRACE, "read %d bytes of data from %s, offset %"PRId64"", - op_ret, sh_local->loc.path, sh->offset); + op_ret, sh_local->loc.path, loop_state->offset); if ((op_ret <= 0) || (call_count == 0)) { -- cgit