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
5cc6b48f
Commit
5cc6b48f
authored
Dec 27, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17441 - InnoDB transition to C++11 atomics
onlineddl_rowlog_rows transition to Atomic_counter.
parent
4ef481f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
storage/innobase/include/row0log.h
storage/innobase/include/row0log.h
+1
-1
storage/innobase/row/row0log.cc
storage/innobase/row/row0log.cc
+2
-2
No files found.
storage/innobase/include/row0log.h
View file @
5cc6b48f
...
@@ -36,7 +36,7 @@ Created 2011-05-26 Marko Makela
...
@@ -36,7 +36,7 @@ Created 2011-05-26 Marko Makela
class
ut_stage_alter_t
;
class
ut_stage_alter_t
;
extern
ulint
onlineddl_rowlog_rows
;
extern
Atomic_counter
<
ulint
>
onlineddl_rowlog_rows
;
extern
ulint
onlineddl_rowlog_pct_used
;
extern
ulint
onlineddl_rowlog_pct_used
;
extern
ulint
onlineddl_pct_progress
;
extern
ulint
onlineddl_pct_progress
;
...
...
storage/innobase/row/row0log.cc
View file @
5cc6b48f
...
@@ -42,7 +42,7 @@ Created 2011-05-26 Marko Makela
...
@@ -42,7 +42,7 @@ Created 2011-05-26 Marko Makela
#include <algorithm>
#include <algorithm>
#include <map>
#include <map>
ulint
onlineddl_rowlog_rows
;
Atomic_counter
<
ulint
>
onlineddl_rowlog_rows
;
ulint
onlineddl_rowlog_pct_used
;
ulint
onlineddl_rowlog_pct_used
;
ulint
onlineddl_pct_progress
;
ulint
onlineddl_pct_progress
;
...
@@ -605,7 +605,7 @@ row_log_table_close_func(
...
@@ -605,7 +605,7 @@ row_log_table_close_func(
err_exit:
err_exit:
mutex_exit
(
&
log
->
mutex
);
mutex_exit
(
&
log
->
mutex
);
my_atomic_addlint
(
&
onlineddl_rowlog_rows
,
1
)
;
onlineddl_rowlog_rows
++
;
/* 10000 means 100.00%, 4525 means 45.25% */
/* 10000 means 100.00%, 4525 means 45.25% */
onlineddl_rowlog_pct_used
=
static_cast
<
ulint
>
((
log
->
tail
.
total
*
10000
)
/
srv_online_max_size
);
onlineddl_rowlog_pct_used
=
static_cast
<
ulint
>
((
log
->
tail
.
total
*
10000
)
/
srv_online_max_size
);
}
}
...
...
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