From c90bea236d66da360988df479239f21d0a3addc1 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 25 May 2010 05:16:47 +0000 Subject: take the return value of trace_stat_to_str for preparent and postparent in corresponding variables Signed-off-by: Raghavendra Bhat Signed-off-by: Anand V. Avati BUG: 945 (stat information of postparent stored in preparentstr instead of postparentstr in trace) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=945 --- xlators/debug/trace/src/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/debug/trace') diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c index 20ac6dbb57a..3daa730f009 100644 --- a/xlators/debug/trace/src/trace.c +++ b/xlators/debug/trace/src/trace.c @@ -832,7 +832,7 @@ trace_rmdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (trace_fop_names[GF_FOP_RMDIR].enabled) { if (op_ret >= 0) { preparentstr = trace_stat_to_str (preparent); - preparentstr = trace_stat_to_str (postparent); + postparentstr = trace_stat_to_str (postparent); gf_log (this->name, GF_LOG_NORMAL, "%"PRId64": (op_ret=%d, *prebuf = {%s}, " @@ -869,7 +869,7 @@ trace_truncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (trace_fop_names[GF_FOP_TRUNCATE].enabled) { if (op_ret >= 0) { preopstr = trace_stat_to_str (prebuf); - postopstr = trace_stat_to_str (prebuf); + postopstr = trace_stat_to_str (postbuf); gf_log (this->name, GF_LOG_NORMAL, "%"PRId64": (op_ret=%d, *prebuf = {%s}, " -- cgit