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
6ee5fff9
Commit
6ee5fff9
authored
Apr 17, 2013
by
John Esmet
Committed by
Yoni Fogel
Apr 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refs #5351 fix test
git-svn-id:
file:///svn/toku/tokudb@49917
c7de825b-a66e-492c-adef-691d508d4ae1
parent
f0a8035a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
locktree/tests/locktree_simple_lock.cc
locktree/tests/locktree_simple_lock.cc
+0
-12
No files found.
locktree/tests/locktree_simple_lock.cc
View file @
6ee5fff9
...
...
@@ -103,16 +103,8 @@ void locktree_unit_test::test_simple_lock(void) {
#undef ACQUIRE_LOCK
}
// TODO: test read locks from different txns that overlap!
#if 0
const int64_t num_locks = 1000000;
#else
const
int64_t
num_locks
=
10000
;
#endif
long
t0
,
t1
;
int64_t
*
keys
=
(
int64_t
*
)
toku_malloc
(
num_locks
*
sizeof
(
int64_t
));
for
(
int64_t
i
=
0
;
i
<
num_locks
;
i
++
)
{
keys
[
i
]
=
i
;
...
...
@@ -133,20 +125,16 @@ void locktree_unit_test::test_simple_lock(void) {
k
.
size
=
sizeof
(
keys
[
0
]);
k
.
flags
=
DB_DBT_USERMEM
;
t0
=
current_time_usec
();
for
(
int64_t
i
=
0
;
i
<
num_locks
;
i
++
)
{
k
.
data
=
(
void
*
)
&
keys
[
i
];
r
=
lt
->
acquire_read_lock
(
txnid_a
,
&
k
,
&
k
,
nullptr
);
invariant
(
r
==
0
);
}
t1
=
current_time_usec
();
t0
=
current_time_usec
();
for
(
int64_t
i
=
0
;
i
<
num_locks
;
i
++
)
{
k
.
data
=
(
void
*
)
&
keys
[
i
];
lt
->
remove_overlapping_locks_for_txnid
(
txnid_a
,
&
k
,
&
k
);
}
t1
=
current_time_usec
();
toku_free
(
keys
);
...
...
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