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
97c8c2da
Commit
97c8c2da
authored
Feb 09, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge ahristov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into lmy004.:/work/mysql-5.1-bug16984
parents
d6c3b785
a0d9b471
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sql/event_executor.cc
sql/event_executor.cc
+4
-3
No files found.
sql/event_executor.cc
View file @
97c8c2da
...
...
@@ -31,6 +31,7 @@
extern
ulong
thread_created
;
extern
const
char
*
my_localhost
;
extern
pthread_attr_t
connection_attrib
;
pthread_mutex_t
LOCK_event_arrays
,
LOCK_workers_count
,
...
...
@@ -41,7 +42,7 @@ bool evex_is_running= false;
ulonglong
evex_main_thread_id
=
0
;
ulong
opt_event_executor
;
volatile
my_bool
event_executor_running_global_var
;
my_bool
event_executor_running_global_var
;
static
my_bool
evex_mutexes_initted
=
false
;
static
uint
workers_count
;
...
...
@@ -102,7 +103,7 @@ init_events()
{
#ifndef DBUG_FAULTY_THR
//TODO Andrey: Change the error code returned!
if
(
pthread_create
(
&
th
,
NULL
,
event_executor_main
,
(
void
*
)
NULL
))
if
(
pthread_create
(
&
th
,
&
connection_attrib
,
event_executor_main
,
(
void
*
)
NULL
))
DBUG_RETURN
(
ER_SLAVE_THREAD
);
#else
event_executor_main
(
NULL
);
...
...
@@ -351,7 +352,7 @@ event_executor_main(void *arg)
++
iter_num
;
DBUG_PRINT
(
"info"
,
(
" Spawning a thread %d"
,
iter_num
));
#ifndef DBUG_FAULTY_THR
if
(
pthread_create
(
&
th
,
NULL
,
event_executor_worker
,
(
void
*
)
et
))
if
(
pthread_create
(
&
th
,
&
connection_attrib
,
event_executor_worker
,
(
void
*
)
et
))
{
sql_print_error
(
"Problem while trying to create a thread"
);
UNLOCK_MUTEX_AND_BAIL_OUT
(
LOCK_event_arrays
,
err
);
...
...
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