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
6f01c42f
Commit
6f01c42f
authored
May 24, 2018
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.2 into 10.3
parents
96cee524
1c8c6bcd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+1
-1
storage/innobase/include/srv0srv.h
storage/innobase/include/srv0srv.h
+4
-1
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+9
-0
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
6f01c42f
...
...
@@ -326,7 +326,7 @@ thd_destructor_proxy(void *)
need to be purged, so they have to be shut down before purge
threads if slow shutdown is requested. */
srv_shutdown_bg_undo_sources
();
srv_purge_
wakeup
();
srv_purge_
shutdown
();
destroy_thd
(
thd
);
mysql_cond_destroy
(
&
thd_destructor_cond
);
...
...
storage/innobase/include/srv0srv.h
View file @
6f01c42f
...
...
@@ -3,7 +3,7 @@
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2008, 2009, Google Inc.
Copyright (c) 2009, Percona Inc.
Copyright (c) 2013, 201
7
, MariaDB Corporation.
Copyright (c) 2013, 201
8
, MariaDB Corporation.
Portions of this file contain modifications contributed and copyrighted by
Google, Inc. Those modifications are gratefully acknowledged and are described
...
...
@@ -900,6 +900,9 @@ srv_release_threads(enum srv_thread_type type, ulint n);
void
srv_purge_wakeup
();
/** Shut down the purge threads. */
void
srv_purge_shutdown
();
/** Check if tablespace is being truncated.
(Ignore system-tablespace as we don't re-create the tablespace
and so some of the action that are suppressed by this function
...
...
storage/innobase/srv/srv0srv.cc
View file @
6f01c42f
...
...
@@ -2826,6 +2826,15 @@ srv_purge_wakeup()
||
srv_sys
.
n_threads_active
[
SRV_PURGE
]));
}
/** Shut down the purge threads. */
void
srv_purge_shutdown
()
{
do
{
ut_ad
(
!
srv_undo_sources
);
srv_purge_wakeup
();
}
while
(
srv_sys
.
sys_threads
[
SRV_PURGE_SLOT
].
in_use
);
}
/** Check if tablespace is being truncated.
(Ignore system-tablespace as we don't re-create the tablespace
and so some of the action that are suppressed by this function
...
...
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