Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
872d65a5
Commit
872d65a5
authored
Oct 31, 2007
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sundry changes to fix merge problems. Most of these are duplicated
in 5.0-community, but pulling to merge was very hard.
parent
44ba1227
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
35 deletions
+31
-35
sql/mysql_priv.h
sql/mysql_priv.h
+2
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-3
sql/set_var.cc
sql/set_var.cc
+3
-6
sql/sql_cache.cc
sql/sql_cache.cc
+0
-1
sql/sql_profile.cc
sql/sql_profile.cc
+22
-22
sql/sql_profile.h
sql/sql_profile.h
+2
-2
No files found.
sql/mysql_priv.h
View file @
872d65a5
...
...
@@ -648,6 +648,7 @@ inline THD *_current_thd(void)
The meat of thd_proc_info(THD*, char*), a macro that packs the last
three calling-info parameters.
*/
extern
"C"
const
char
*
set_thd_proc_info
(
THD
*
thd
,
const
char
*
info
,
const
char
*
calling_func
,
const
char
*
calling_file
,
...
...
@@ -1912,7 +1913,7 @@ extern handlerton *myisam_hton;
extern
handlerton
*
heap_hton
;
extern
SHOW_COMP_OPTION
have_ssl
,
have_symlink
,
have_dlopen
;
u
extern
SHOW_COMP_OPTION
have_query_cache
;
extern
SHOW_COMP_OPTION
have_query_cache
;
extern
SHOW_COMP_OPTION
have_geometry
,
have_rtree_keys
;
extern
SHOW_COMP_OPTION
have_crypt
;
extern
SHOW_COMP_OPTION
have_compress
;
...
...
sql/mysqld.cc
View file @
872d65a5
...
...
@@ -5654,8 +5654,8 @@ master-ssl",
(
uchar
**
)
&
mysqld_port_timeout
,
0
,
GET_UINT
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
{
"profiling_history_size"
,
OPT_PROFILING
,
"Limit of query profiling memory"
,
(
gptr
*
)
&
global_system_variables
.
profiling_history_size
,
(
gptr
*
)
&
max_system_variables
.
profiling_history_size
,
(
uchar
*
*
)
&
global_system_variables
.
profiling_history_size
,
(
uchar
*
*
)
&
max_system_variables
.
profiling_history_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
15
,
0
,
100
,
0
,
0
,
0
},
#endif
{
"relay-log"
,
OPT_RELAY_LOG
,
...
...
@@ -7204,7 +7204,6 @@ static void mysql_init_variables(void)
"d:t:i:o,/tmp/mysqld.trace"
);
#endif
opt_error_log
=
IF_WIN
(
1
,
0
);
#endif
#ifdef COMMUNITY_SERVER
have_community_features
=
SHOW_OPTION_YES
;
#else
...
...
sql/set_var.cc
View file @
872d65a5
...
...
@@ -583,9 +583,10 @@ static sys_var_thd_bit sys_unique_checks(&vars, "unique_checks", 0,
OPTION_RELAXED_UNIQUE_CHECKS
,
1
);
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
static
sys_var_thd_bit
sys_profiling
(
"profiling"
,
NULL
,
set_option_bit
,
static
sys_var_thd_bit
sys_profiling
(
&
vars
,
"profiling"
,
NULL
,
set_option_bit
,
ulonglong
(
OPTION_PROFILING
));
static
sys_var_thd_ulong
sys_profiling_history_size
(
"profiling_history_size"
,
static
sys_var_thd_ulong
sys_profiling_history_size
(
&
vars
,
"profiling_history_size"
,
&
SV
::
profiling_history_size
);
#endif
...
...
@@ -699,10 +700,6 @@ static SHOW_VAR fixed_vars[]= {
{
"pid_file"
,
(
char
*
)
pidfile_name
,
SHOW_CHAR
},
{
"plugin_dir"
,
(
char
*
)
opt_plugin_dir
,
SHOW_CHAR
},
{
"port"
,
(
char
*
)
&
mysqld_port
,
SHOW_INT
},
#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
{
"protocol_version"
,
(
char
*
)
&
protocol_version
,
SHOW_INT
},
#ifdef HAVE_SMEM
{
"shared_memory"
,
(
char
*
)
&
opt_enable_shared_memory
,
SHOW_MY_BOOL
},
...
...
sql/sql_cache.cc
View file @
872d65a5
...
...
@@ -1455,7 +1455,6 @@ void Query_cache::invalidate(THD *thd, TABLE_LIST *tables_used,
void
Query_cache
::
invalidate
(
CHANGED_TABLE_LIST
*
tables_used
)
{
THD
*
thd
=
current_thd
;
DBUG_ENTER
(
"Query_cache::invalidate (changed table list)"
);
THD
*
thd
=
current_thd
;
for
(;
tables_used
;
tables_used
=
tables_used
->
next
)
...
...
sql/sql_profile.cc
View file @
872d65a5
...
...
@@ -28,7 +28,7 @@ const char * const _unknown_func_ = "<unknown>";
/**
Connects Information_Schema and Profiling.
*/
int
fill_query_profile_statistics_info
(
THD
*
thd
,
struct
st_table_list
*
tables
,
int
fill_query_profile_statistics_info
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
*
cond
)
{
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
...
...
@@ -40,26 +40,26 @@ int fill_query_profile_statistics_info(THD *thd, struct st_table_list *tables,
ST_FIELD_INFO
query_profile_statistics_info
[]
=
{
/* name, length, type, value, maybe_null, old_name */
{
"QUERY_ID"
,
20
,
MYSQL_TYPE_LONG
,
0
,
false
,
NULL
},
{
"SEQ"
,
20
,
MYSQL_TYPE_LONG
,
0
,
false
,
NULL
},
{
"STATE"
,
30
,
MYSQL_TYPE_STRING
,
0
,
false
,
NULL
},
{
"DURATION"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
false
,
NULL
},
{
"CPU_USER"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
true
,
NULL
},
{
"CPU_SYSTEM"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
true
,
NULL
},
{
"CONTEXT_VOLUNTARY"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"CONTEXT_INVOLUNTARY"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"BLOCK_OPS_IN"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"BLOCK_OPS_OUT"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"MESSAGES_SENT"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"MESSAGES_RECEIVED"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"PAGE_FAULTS_MAJOR"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"PAGE_FAULTS_MINOR"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"SWAPS"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
"SOURCE_FUNCTION"
,
30
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
},
{
"SOURCE_FILE"
,
20
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
},
{
"SOURCE_LINE"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
},
{
NULL
,
0
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
}
/* name, length, type, value, maybe_null, old_name
, open_method
*/
{
"QUERY_ID"
,
20
,
MYSQL_TYPE_LONG
,
0
,
false
,
NULL
,
SKIP_OPEN_TABLE
},
{
"SEQ"
,
20
,
MYSQL_TYPE_LONG
,
0
,
false
,
NULL
,
SKIP_OPEN_TABLE
},
{
"STATE"
,
30
,
MYSQL_TYPE_STRING
,
0
,
false
,
NULL
,
SKIP_OPEN_TABLE
},
{
"DURATION"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
false
,
NULL
,
SKIP_OPEN_TABLE
},
{
"CPU_USER"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"CPU_SYSTEM"
,
TIME_FLOAT_DIGITS
,
MYSQL_TYPE_DOUBLE
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"CONTEXT_VOLUNTARY"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"CONTEXT_INVOLUNTARY"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"BLOCK_OPS_IN"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"BLOCK_OPS_OUT"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"MESSAGES_SENT"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"MESSAGES_RECEIVED"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"PAGE_FAULTS_MAJOR"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"PAGE_FAULTS_MINOR"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"SWAPS"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"SOURCE_FUNCTION"
,
30
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"SOURCE_FILE"
,
20
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
"SOURCE_LINE"
,
20
,
MYSQL_TYPE_LONG
,
0
,
true
,
NULL
,
SKIP_OPEN_TABLE
},
{
NULL
,
0
,
MYSQL_TYPE_STRING
,
0
,
true
,
NULL
,
NULL
}
};
#if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
...
...
@@ -663,7 +663,7 @@ bool PROFILING::show_last(uint options)
/**
Fill the information schema table, "query_profile", as defined in show.cc .
*/
int
PROFILING
::
fill_statistics_info
(
THD
*
thd
,
struct
st_table_list
*
tables
,
Item
*
cond
)
int
PROFILING
::
fill_statistics_info
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
*
cond
)
{
DBUG_ENTER
(
"PROFILING::fill_statistics_info"
);
TABLE
*
table
=
tables
->
table
;
...
...
sql/sql_profile.h
View file @
872d65a5
...
...
@@ -38,7 +38,7 @@ extern const char * const _unknown_func_;
#endif
extern
ST_FIELD_INFO
query_profile_statistics_info
[];
int
fill_query_profile_statistics_info
(
THD
*
thd
,
struct
st_table_list
*
tables
,
Item
*
cond
);
int
fill_query_profile_statistics_info
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
*
cond
);
#define PROFILE_NONE 0
...
...
@@ -322,7 +322,7 @@ class PROFILING
bool
show_last
(
uint
options
);
/* ... from INFORMATION_SCHEMA.PROFILING ... */
int
fill_statistics_info
(
THD
*
thd
,
struct
st_table_list
*
tables
,
Item
*
cond
);
int
fill_statistics_info
(
THD
*
thd
,
TABLE_LIST
*
tables
,
Item
*
cond
);
};
# endif
/* HAVE_PROFILING */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment