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
4ef481f5
Commit
4ef481f5
authored
Dec 26, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17441 - InnoDB transition to C++11 atomics
os_aio_validate_count transition to Atomic_counter.
parent
dbd40edf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
storage/innobase/os/os0file.cc
storage/innobase/os/os0file.cc
+2
-9
No files found.
storage/innobase/os/os0file.cc
View file @
4ef481f5
...
@@ -1084,15 +1084,8 @@ os_aio_validate_skip()
...
@@ -1084,15 +1084,8 @@ os_aio_validate_skip()
/** Try os_aio_validate() every this many times */
/** Try os_aio_validate() every this many times */
# define OS_AIO_VALIDATE_SKIP 13
# define OS_AIO_VALIDATE_SKIP 13
static
int
os_aio_validate_count
;
static
Atomic_counter
<
uint32_t
>
os_aio_validate_count
;
return
(
os_aio_validate_count
++
%
OS_AIO_VALIDATE_SKIP
)
||
os_aio_validate
();
if
(
my_atomic_add32_explicit
(
&
os_aio_validate_count
,
-
1
,
MY_MEMORY_ORDER_RELAXED
)
%
OS_AIO_VALIDATE_SKIP
)
{
return
true
;
}
return
(
os_aio_validate
());
}
}
#endif
/* UNIV_DEBUG */
#endif
/* UNIV_DEBUG */
...
...
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