mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Wrap code specific to the comunity-server in additional CPP #ifdef .
Add a new autoconf paremeter --{en,dis}able-community-features . The
default is disable for enterprise servers.
Though this is a 5.0 tree, it is only to be merged into the 5.0-community
tree and the global 5.1 tree, never to the 5.0-enterprise tree.
This commit is contained in:
@@ -31,7 +31,7 @@ const char * const _unknown_func_ = "<unknown>";
|
||||
int fill_query_profile_statistics_info(THD *thd, struct st_table_list *tables,
|
||||
Item *cond)
|
||||
{
|
||||
#ifdef ENABLED_PROFILING
|
||||
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
|
||||
return(thd->profiling.fill_statistics_info(thd, tables, cond));
|
||||
#else
|
||||
return(1);
|
||||
@@ -62,7 +62,7 @@ ST_FIELD_INFO query_profile_statistics_info[]=
|
||||
{NULL, 0, MYSQL_TYPE_STRING, 0, true, NULL}
|
||||
};
|
||||
|
||||
#ifdef ENABLED_PROFILING
|
||||
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
|
||||
|
||||
#define RUSAGE_USEC(tv) ((tv).tv_sec*1000*1000 + (tv).tv_usec)
|
||||
#define RUSAGE_DIFF_USEC(tv1, tv2) (RUSAGE_USEC((tv1))-RUSAGE_USEC((tv2)))
|
||||
|
||||
Reference in New Issue
Block a user