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
d6a8330e
Commit
d6a8330e
authored
Aug 08, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid problems on shutdown by shutting down replication slave threads
after normal connection threads. (Bug #11796)
parent
ac6623f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sql/mysqld.cc
sql/mysqld.cc
+5
-1
No files found.
sql/mysqld.cc
View file @
d6a8330e
...
...
@@ -648,7 +648,6 @@ static void close_connections(void)
}
#endif
end_thr_alarm
(
0
);
// Abort old alarms.
end_slave
();
/*
First signal all threads that it's time to die
...
...
@@ -664,6 +663,9 @@ static void close_connections(void)
{
DBUG_PRINT
(
"quit"
,(
"Informing thread %ld that it's time to die"
,
tmp
->
thread_id
));
/* We skip slave threads on this first loop through. */
if
(
tmp
->
slave_thread
)
continue
;
tmp
->
killed
=
1
;
if
(
tmp
->
mysys_var
)
{
...
...
@@ -680,6 +682,8 @@ static void close_connections(void)
}
(
void
)
pthread_mutex_unlock
(
&
LOCK_thread_count
);
// For unlink from list
end_slave
();
if
(
thread_count
)
sleep
(
2
);
// Give threads time to die
...
...
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