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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e4a4ec39
Commit
e4a4ec39
authored
Apr 22, 2010
by
jyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register newly added purge thread to performance schema tracking.
rb://289
, approved by Marko
parent
63d38a48
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
1 deletion
+8
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+2
-1
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+1
-0
storage/innobase/srv/srv0srv.c
storage/innobase/srv/srv0srv.c
+4
-0
storage/innobase/srv/srv0start.c
storage/innobase/srv/srv0start.c
+1
-0
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
e4a4ec39
...
...
@@ -312,7 +312,8 @@ static PSI_thread_info all_innodb_threads[] = {
{
&
srv_lock_timeout_thread_key
,
"srv_lock_timeout_thread"
,
0
},
{
&
srv_error_monitor_thread_key
,
"srv_error_monitor_thread"
,
0
},
{
&
srv_monitor_thread_key
,
"srv_monitor_thread"
,
0
},
{
&
srv_master_thread_key
,
"srv_master_thread"
,
0
}
{
&
srv_master_thread_key
,
"srv_master_thread"
,
0
},
{
&
srv_purge_thread_key
,
"srv_purge_thread"
,
0
}
};
# endif
/* UNIV_PFS_THREAD */
...
...
storage/innobase/include/srv0srv.h
View file @
e4a4ec39
...
...
@@ -328,6 +328,7 @@ extern mysql_pfs_key_t srv_lock_timeout_thread_key;
extern
mysql_pfs_key_t
srv_error_monitor_thread_key
;
extern
mysql_pfs_key_t
srv_monitor_thread_key
;
extern
mysql_pfs_key_t
srv_master_thread_key
;
extern
mysql_pfs_key_t
srv_purge_thread_key
;
/* This macro register the current thread and its key with performance
schema */
...
...
storage/innobase/srv/srv0srv.c
View file @
e4a4ec39
...
...
@@ -2965,6 +2965,10 @@ srv_purge_thread(
ut_a
(
srv_n_purge_threads
==
1
);
#ifdef UNIV_PFS_THREAD
pfs_register_thread
(
srv_purge_thread_key
);
#endif
/* UNIV_PFS_THREAD */
#ifdef UNIV_DEBUG_THREAD_CREATION
fprintf
(
stderr
,
"InnoDB: Purge thread running, id %lu
\n
"
,
os_thread_pf
(
os_thread_get_curr_id
()));
...
...
storage/innobase/srv/srv0start.c
View file @
e4a4ec39
...
...
@@ -149,6 +149,7 @@ UNIV_INTERN mysql_pfs_key_t srv_lock_timeout_thread_key;
UNIV_INTERN
mysql_pfs_key_t
srv_error_monitor_thread_key
;
UNIV_INTERN
mysql_pfs_key_t
srv_monitor_thread_key
;
UNIV_INTERN
mysql_pfs_key_t
srv_master_thread_key
;
UNIV_INTERN
mysql_pfs_key_t
srv_purge_thread_key
;
#endif
/* UNIV_PFS_THREAD */
#ifdef UNIV_PFS_MUTEX
...
...
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