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
521ada59
Commit
521ada59
authored
Oct 06, 2014
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed some helgrind warnings in ydb/helgrind_test_groupcommit_count.tdb
parent
5a3e4d4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
locktree/locktree.cc
locktree/locktree.cc
+1
-1
portability/toku_race_tools.h
portability/toku_race_tools.h
+4
-0
No files found.
locktree/locktree.cc
View file @
521ada59
...
...
@@ -330,7 +330,7 @@ void locktree::sto_migrate_buffer_ranges_to_tree(void *prepared_lkr) {
bool
locktree
::
sto_try_acquire
(
void
*
prepared_lkr
,
TXNID
txnid
,
const
DBT
*
left_key
,
const
DBT
*
right_key
)
{
if
(
m_rangetree
->
is_empty
()
&&
m_sto_buffer
.
is_empty
()
&&
m_sto_score
>=
STO_SCORE_THRESHOLD
)
{
if
(
m_rangetree
->
is_empty
()
&&
m_sto_buffer
.
is_empty
()
&&
toku_drd_unsafe_fetch
(
&
m_sto_score
)
>=
STO_SCORE_THRESHOLD
)
{
// We can do the optimization because the rangetree is empty, and
// we know its worth trying because the sto score is big enough.
sto_begin
(
txnid
);
...
...
portability/toku_race_tools.h
View file @
521ada59
...
...
@@ -143,9 +143,11 @@ PATENT RIGHTS GRANT:
// racey access to src for the next sizeof(*src) bytes
template
<
typename
T
>
T
toku_drd_unsafe_fetch
(
T
*
src
)
{
VALGRIND_HG_DISABLE_CHECKING
(
src
,
sizeof
*
src
);
TOKU_DRD_IGNORE_VAR
(
*
src
);
T
val
=
*
src
;
TOKU_DRD_STOP_IGNORING_VAR
(
*
src
);
VALGRIND_HG_ENABLE_CHECKING
(
src
,
sizeof
*
src
);
return
val
;
}
...
...
@@ -153,7 +155,9 @@ T toku_drd_unsafe_fetch(T *src) {
// racey access to dest for the next sizeof(*dest) bytes
template
<
typename
T
>
void
toku_drd_unsafe_set
(
T
*
dest
,
const
T
src
)
{
VALGRIND_HG_DISABLE_CHECKING
(
dest
,
sizeof
*
dest
);
TOKU_DRD_IGNORE_VAR
(
*
dest
);
*
dest
=
src
;
TOKU_DRD_STOP_IGNORING_VAR
(
*
dest
);
VALGRIND_HG_ENABLE_CHECKING
(
dest
,
sizeof
*
dest
);
}
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