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
539a7ebe
Commit
539a7ebe
authored
Dec 29, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LP909537: Ensure thd_wait_begin/thd_wait_end callbacks are called.
parent
8d90582a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
18 deletions
+10
-18
sql/sql_class.cc
sql/sql_class.cc
+9
-17
sql/threadpool_unix.cc
sql/threadpool_unix.cc
+1
-1
No files found.
sql/sql_class.cc
View file @
539a7ebe
...
@@ -3927,9 +3927,7 @@ extern "C" bool thd_sqlcom_can_generate_row_events(const MYSQL_THD thd)
...
@@ -3927,9 +3927,7 @@ extern "C" bool thd_sqlcom_can_generate_row_events(const MYSQL_THD thd)
return
sqlcom_can_generate_row_events
(
thd
);
return
sqlcom_can_generate_row_events
(
thd
);
}
}
#ifdef NOT_USED
/* we'll do the correctly instead */
extern
"C"
void
thd_pool_wait_begin
(
MYSQL_THD
thd
,
int
wait_type
);
extern
"C"
void
thd_pool_wait_end
(
MYSQL_THD
thd
);
/*
/*
Interface for MySQL Server, plugins and storage engines to report
Interface for MySQL Server, plugins and storage engines to report
...
@@ -3954,6 +3952,9 @@ extern "C" void thd_pool_wait_end(MYSQL_THD thd);
...
@@ -3954,6 +3952,9 @@ extern "C" void thd_pool_wait_end(MYSQL_THD thd);
*/
*/
extern
"C"
void
thd_wait_begin
(
MYSQL_THD
thd
,
int
wait_type
)
extern
"C"
void
thd_wait_begin
(
MYSQL_THD
thd
,
int
wait_type
)
{
{
if
(
!
thd
)
thd
=
current_thd
;
if
(
thd
)
MYSQL_CALLBACK
(
thd
->
scheduler
,
thd_wait_begin
,
(
thd
,
wait_type
));
MYSQL_CALLBACK
(
thd
->
scheduler
,
thd_wait_begin
,
(
thd
,
wait_type
));
}
}
...
@@ -3965,21 +3966,12 @@ extern "C" void thd_wait_begin(MYSQL_THD thd, int wait_type)
...
@@ -3965,21 +3966,12 @@ extern "C" void thd_wait_begin(MYSQL_THD thd, int wait_type)
*/
*/
extern
"C"
void
thd_wait_end
(
MYSQL_THD
thd
)
extern
"C"
void
thd_wait_end
(
MYSQL_THD
thd
)
{
{
if
(
!
thd
)
thd
=
current_thd
;
if
(
thd
)
MYSQL_CALLBACK
(
thd
->
scheduler
,
thd_wait_end
,
(
thd
));
MYSQL_CALLBACK
(
thd
->
scheduler
,
thd_wait_end
,
(
thd
));
}
}
#else
extern
"C"
void
thd_wait_begin
(
MYSQL_THD
thd
,
int
wait_type
)
{
/* do NOTHING for the embedded library */
return
;
}
extern
"C"
void
thd_wait_end
(
MYSQL_THD
thd
)
{
/* do NOTHING for the embedded library */
return
;
}
#endif
#endif // INNODB_COMPATIBILITY_HOOKS */
#endif // INNODB_COMPATIBILITY_HOOKS */
/****************************************************************************
/****************************************************************************
...
...
sql/threadpool_unix.cc
View file @
539a7ebe
...
@@ -845,7 +845,7 @@ static void post_event(thread_group_t *thread_group, pool_event_t* ev)
...
@@ -845,7 +845,7 @@ static void post_event(thread_group_t *thread_group, pool_event_t* ev)
*/
*/
static
bool
too_many_threads
(
thread_group_t
*
thread_group
)
static
bool
too_many_threads
(
thread_group_t
*
thread_group
)
{
{
return
(
thread_group
->
active_thread_count
>
4
&&
!
thread_group
->
stalled
);
return
(
thread_group
->
active_thread_count
>
=
4
&&
!
thread_group
->
stalled
);
}
}
...
...
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