summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2010-05-25 05:16:47 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-27 02:00:41 -0700
commitc90bea236d66da360988df479239f21d0a3addc1 (patch)
tree3013f9099abd7f40976ae8d884f173945d613430 /xlators
parent665591074fbef562b48a9cd1b74b3d4cc92cd667 (diff)
take the return value of trace_stat_to_str for preparent and postparent in corresponding variables
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> 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
Diffstat (limited to 'xlators')
-rw-r--r--xlators/debug/trace/src/trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c
index 20ac6dbb5..3daa730f0 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}, "