summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-algorithm.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-09-20 07:28:30 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-20 08:13:24 -0700
commit1473491b576700bb3891abb8adb49e0c31cef8bc (patch)
tree5fe1ac92d2dbabe7aecf8e63220f557ad5b774f6 /xlators/cluster/afr/src/afr-self-heal-algorithm.c
parentabbfbe2461511183a983f5c97f08f2653f40d47b (diff)
cluster/afr: print correct offset in debug message during diff self-heal.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 960 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=960
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-algorithm.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-algorithm.c4
1 files 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)) {