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
dbd40edf
Commit
dbd40edf
authored
Oct 25, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17441 - InnoDB transition to C++11 atomics
ibuf_t::n_merges transition to Atomic_counter.
parent
66ec8adb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
storage/innobase/ibuf/ibuf0ibuf.cc
storage/innobase/ibuf/ibuf0ibuf.cc
+2
-2
storage/innobase/include/ibuf0ibuf.ic
storage/innobase/include/ibuf0ibuf.ic
+2
-1
No files found.
storage/innobase/ibuf/ibuf0ibuf.cc
View file @
dbd40edf
...
...
@@ -4760,7 +4760,7 @@ ibuf_merge_or_delete_for_page(
btr_pcur_close
(
&
pcur
);
mem_heap_free
(
heap
);
my_atomic_addlint
(
&
ibuf
->
n_merges
,
1
)
;
ibuf
->
n_merges
++
;
ibuf_add_ops
(
ibuf
->
n_merged_ops
,
mops
);
ibuf_add_ops
(
ibuf
->
n_discarded_ops
,
dops
);
...
...
@@ -4897,7 +4897,7 @@ ibuf_print(
ibuf
->
size
,
ibuf
->
free_list_len
,
ibuf
->
seg_size
,
ibuf
->
n_merges
);
ulint
{
ibuf
->
n_merges
}
);
fputs
(
"merged operations:
\n
"
,
file
);
ibuf_print_ops
(
ibuf
->
n_merged_ops
,
file
);
...
...
storage/innobase/include/ibuf0ibuf.ic
View file @
dbd40edf
...
...
@@ -78,7 +78,8 @@ struct ibuf_t{
ulint height; /*!< tree height */
dict_index_t* index; /*!< insert buffer index */
ulint n_merges; /*!< number of pages merged */
/** number of pages merged */
Atomic_counter<ulint> n_merges;
ulint n_merged_ops[IBUF_OP_COUNT];
/*!< number of operations of each type
merged to index pages */
...
...
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