diff options
author | Chad MILLER <chad@mysql.com> | 2009-05-05 17:03:23 -0400 |
---|---|---|
committer | Chad MILLER <chad@mysql.com> | 2009-05-05 17:03:23 -0400 |
commit | 9d58239dea8c615a10a0939e34d052b22808e75f (patch) | |
tree | 14698de1876a7bea69d52b7f7ddaedbf0877551f /sql/sql_class.cc | |
parent | 978e8e06b00defd5c95c7eb88304333e7978a553 (diff) | |
download | mariadb-git-9d58239dea8c615a10a0939e34d052b22808e75f.tar.gz |
Pull 5.1 treatment of community features into 5.0.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 8a0d84c6735..f2e04647452 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -173,7 +173,7 @@ const char *set_thd_proc_info(THD *thd, const char *info, { const char *old_info= thd->proc_info; DBUG_PRINT("proc_info", ("%s:%d %s", calling_file, calling_line, info)); -#if defined(ENABLED_PROFILING) +#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER) thd->profiling.status_change(info, calling_function, calling_file, calling_line); #endif thd->proc_info= info; @@ -272,7 +272,7 @@ THD::THD() init(); /* Initialize sub structures */ init_sql_alloc(&warn_root, WARN_ALLOC_BLOCK_SIZE, WARN_ALLOC_PREALLOC_SIZE); -#ifdef ENABLED_PROFILING +#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER) profiling.set_thd(this); #endif user_connect=(USER_CONN *)0; |