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
68980641
Commit
68980641
authored
Aug 28, 2012
by
Tor Didriksen
Browse files
Options
Browse Files
Download
Plain Diff
merge 5.5.28-release => 5.5
parents
fefc29a6
a619bfad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
18 deletions
+21
-18
include/mysql/thread_pool_priv.h
include/mysql/thread_pool_priv.h
+2
-18
sql/mysqld.cc
sql/mysqld.cc
+15
-0
sql/sql_list.h
sql/sql_list.h
+4
-0
No files found.
include/mysql/thread_pool_priv.h
View file @
68980641
...
...
@@ -62,24 +62,8 @@ void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var);
ulong
thd_get_net_wait_timeout
(
THD
*
thd
);
my_socket
thd_get_fd
(
THD
*
thd
);
/* Interface class for global thread list iteration */
class
Thread_iterator
{
public:
Thread_iterator
()
:
m_iterator
(
threads
)
{}
THD
*
next
()
{
THD
*
tmp
=
m_iterator
++
;
return
tmp
;
}
private:
/*
Don't allow copying of this class.
*/
Thread_iterator
(
const
Thread_iterator
&
);
void
operator
=
(
const
Thread_iterator
&
);
I_List_iterator
<
THD
>
m_iterator
;
};
THD
*
first_global_thread
();
THD
*
next_global_thread
(
THD
*
thd
);
/* Print to the MySQL error log */
void
sql_print_error
(
const
char
*
format
,
...);
...
...
sql/mysqld.cc
View file @
68980641
...
...
@@ -601,6 +601,21 @@ I_List<THD> threads;
Rpl_filter
*
rpl_filter
;
Rpl_filter
*
binlog_filter
;
THD
*
first_global_thread
()
{
if
(
threads
.
is_empty
())
return
NULL
;
return
threads
.
head
();
}
THD
*
next_global_thread
(
THD
*
thd
)
{
if
(
threads
.
is_last
(
thd
))
return
NULL
;
struct
ilink
*
next
=
thd
->
next
;
return
static_cast
<
THD
*>
(
next
);
}
struct
system_variables
global_system_variables
;
struct
system_variables
max_system_variables
;
struct
system_status_var
global_status_var
;
...
...
sql/sql_list.h
View file @
68980641
...
...
@@ -585,6 +585,9 @@ class base_ilist
inline
void
empty
()
{
first
=
&
last
;
last
.
prev
=
&
first
;
}
base_ilist
()
{
empty
();
}
inline
bool
is_empty
()
{
return
first
==
&
last
;
}
// Returns true if p is the last "real" object in the list,
// i.e. p->next points to the sentinel.
inline
bool
is_last
(
ilink
*
p
)
{
return
p
->
next
==
NULL
||
p
->
next
==
&
last
;
}
inline
void
append
(
ilink
*
a
)
{
first
->
prev
=
&
a
->
next
;
...
...
@@ -660,6 +663,7 @@ class I_List :private base_ilist
{
public:
I_List
()
:
base_ilist
()
{}
inline
bool
is_last
(
T
*
p
)
{
return
base_ilist
::
is_last
(
p
);
}
inline
void
empty
()
{
base_ilist
::
empty
();
}
inline
bool
is_empty
()
{
return
base_ilist
::
is_empty
();
}
inline
void
append
(
T
*
a
)
{
base_ilist
::
append
(
a
);
}
...
...
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