diff options
author | Mikael Ronström <mikael@dator9> | 2011-02-10 18:15:19 +0100 |
---|---|---|
committer | Mikael Ronström <mikael@dator9> | 2011-02-10 18:15:19 +0100 |
commit | e3f89e5dbac66b34db735ae44a21e6d489a7f28e (patch) | |
tree | 47a4be74fb4e90a025c800c4e4290a9427824390 /sql/sql_class.cc | |
parent | 70136c0aa252d8da2c698f3635ddce8c60b26bc3 (diff) | |
parent | 50c9f1f63d322872a2a36d82fa75eb72c55f6d5c (diff) | |
download | mariadb-git-e3f89e5dbac66b34db735ae44a21e6d489a7f28e.tar.gz |
merge
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index efa125acb2e..f2a41bee707 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; |