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
731435af
Commit
731435af
authored
Apr 26, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srv_purge_coordinator_thread(): Remove redundant variables
parent
6264e892
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
storage/innobase/srv/srv0srv.cc
storage/innobase/srv/srv0srv.cc
+6
-13
No files found.
storage/innobase/srv/srv0srv.cc
View file @
731435af
...
...
@@ -2991,14 +2991,9 @@ DECLARE_THREAD(srv_purge_coordinator_thread)(
ut_a
(
srv_purge_should_exit
(
thd
,
n_total_purged
));
ulint
n_pages_purged
=
ULINT_MAX
;
/* Ensure that all records are purged if it is not a fast shutdown.
This covers the case where a record can be added after we exit the
loop above. */
while
(
srv_fast_shutdown
==
0
&&
n_pages_purged
>
0
)
{
n_pages_purged
=
trx_purge
(
1
,
srv_purge_batch_size
,
false
);
}
/* Ensure that all records are purged on slow shutdown. */
while
(
srv_fast_shutdown
==
0
&&
trx_purge
(
1
,
srv_purge_batch_size
,
false
));
#ifdef UNIV_DEBUG
if
(
srv_fast_shutdown
==
0
)
{
...
...
@@ -3012,12 +3007,10 @@ DECLARE_THREAD(srv_purge_coordinator_thread)(
delay in shutdown ,so reducing the batch size to magic number 20
(which was default in 5.5), which we hope will be sufficient to
remove all the undo records */
const
uint
temp_batch_size
=
20
;
n_pages_purged
=
trx_purge
(
1
,
srv_purge_batch_size
<=
temp_batch_size
?
srv_purge_batch_size
:
temp_batch_size
,
true
);
ut_a
(
n_pages_purged
==
0
||
srv_fast_shutdown
!=
0
);
if
(
trx_purge
(
1
,
std
::
min
(
srv_purge_batch_size
,
20UL
),
true
))
{
ut_a
(
srv_fast_shutdown
);
}
/* The task queue should always be empty, independent of fast
shutdown state. */
...
...
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