summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-01-27 14:25:27 +0100
committerTor Didriksen <tor.didriksen@oracle.com>2011-01-27 14:25:27 +0100
commit6b0b53d65ced7bd07190d3ccaa5ca5362be0b6c5 (patch)
treece4b9e0f255485b31c765a76ce4436f6dfb38670 /sql/sql_class.cc
parent04a86111121ff1cb700a8e3b5047700f20bfabf7 (diff)
downloadmariadb-git-6b0b53d65ced7bd07190d3ccaa5ca5362be0b6c5.tar.gz
Bug #59273 show profile source doesn't show Source_function or truncates Source_file
Fixed the 'show profile source' part of the bug. Leaving SHOW ENGINE INNODB MUTEX to a separate patch.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index c058e66df97..bc6086eaf19 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -272,10 +272,11 @@ const char *set_thd_proc_info(void *thd_arg, const char *info,
thd= current_thd;
const char *old_info= thd->proc_info;
- DBUG_PRINT("proc_info", ("%s:%d %s", calling_file, calling_line,
- (info != NULL) ? info : "(null)"));
+ const char *basename= calling_file ? base_name(calling_file) : NULL;
+ DBUG_PRINT("proc_info", ("%s:%d %s", basename, calling_line, info));
+
#if defined(ENABLED_PROFILING)
- thd->profiling.status_change(info, calling_function, calling_file, calling_line);
+ thd->profiling.status_change(info, calling_function, basename, calling_line);
#endif
thd->proc_info= info;
return old_info;