mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fix improperly-protected variable definition and use.
Also, add CPP so Windows works properly for profiling. Community-server functionality is required.
This commit is contained in:
parent
767501a9b1
commit
3593b73eb1
2 changed files with 3 additions and 2 deletions
|
@ -208,6 +208,7 @@ typedef uint rf_SetTimer;
|
|||
|
||||
/* If query profiling should be enabled by default */
|
||||
#define ENABLED_PROFILING 1
|
||||
#define COMMUNITY_SERVER 1
|
||||
|
||||
/* Convert some simple functions to Posix */
|
||||
|
||||
|
|
|
@ -736,7 +736,7 @@ sys_var *sys_variables[]=
|
|||
&sys_optimizer_prune_level,
|
||||
&sys_optimizer_search_depth,
|
||||
&sys_preload_buff_size,
|
||||
#ifdef ENABLED_PROFILING
|
||||
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
|
||||
&sys_profiling,
|
||||
&sys_profiling_history_size,
|
||||
#endif
|
||||
|
@ -1060,7 +1060,7 @@ struct show_var_st init_vars[]= {
|
|||
{sys_plugin_dir.name, (char*) &sys_plugin_dir, SHOW_SYS},
|
||||
{"port", (char*) &mysqld_port, SHOW_INT},
|
||||
{sys_preload_buff_size.name, (char*) &sys_preload_buff_size, SHOW_SYS},
|
||||
#ifdef ENABLED_PROFILING
|
||||
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
|
||||
{sys_profiling.name, (char*) &sys_profiling, SHOW_SYS},
|
||||
{sys_profiling_history_size.name, (char*) &sys_profiling_history_size, SHOW_SYS},
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue