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
2cd2d8f5
Commit
2cd2d8f5
authored
Apr 23, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#206 fix memory leaks in lock tree tests
parent
cdf8a8aa
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
33 additions
and
1 deletion
+33
-1
locktree/tests/lock_request_killed.cc
locktree/tests/lock_request_killed.cc
+3
-1
locktree/tests/lock_request_not_killed.cc
locktree/tests/lock_request_not_killed.cc
+3
-0
locktree/tests/lock_request_start_deadlock.cc
locktree/tests/lock_request_start_deadlock.cc
+3
-0
locktree/tests/lock_request_start_pending.cc
locktree/tests/lock_request_start_pending.cc
+3
-0
locktree/tests/lock_request_wait_time_callback.cc
locktree/tests/lock_request_wait_time_callback.cc
+3
-0
locktree/tests/locktree_conflicts.cc
locktree/tests/locktree_conflicts.cc
+3
-0
locktree/tests/locktree_create_destroy.cc
locktree/tests/locktree_create_destroy.cc
+3
-0
locktree/tests/locktree_infinity.cc
locktree/tests/locktree_infinity.cc
+3
-0
locktree/tests/locktree_misc.cc
locktree/tests/locktree_misc.cc
+3
-0
locktree/tests/locktree_overlapping_relock.cc
locktree/tests/locktree_overlapping_relock.cc
+3
-0
locktree/tests/locktree_single_txnid_optimization.cc
locktree/tests/locktree_single_txnid_optimization.cc
+3
-0
No files found.
locktree/tests/lock_request_killed.cc
View file @
2cd2d8f5
...
...
@@ -161,7 +161,9 @@ void lock_request_unit_test::test_wait_time_callback(void) {
release_lock_and_retry_requests
(
&
lt
,
txnid_a
,
one
,
one
);
request_a
.
destroy
();
lt
.
create
(
nullptr
,
dict_id
,
nullptr
,
compare_dbts
);
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/lock_request_not_killed.cc
View file @
2cd2d8f5
...
...
@@ -157,6 +157,9 @@ void lock_request_unit_test::test_wait_time_callback(void) {
release_lock_and_retry_requests
(
&
lt
,
txnid_a
,
one
,
one
);
request_a
.
destroy
();
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/lock_request_start_deadlock.cc
View file @
2cd2d8f5
...
...
@@ -158,6 +158,9 @@ void lock_request_unit_test::test_start_deadlock(void) {
request_a
.
destroy
();
request_b
.
destroy
();
request_c
.
destroy
();
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/lock_request_start_pending.cc
View file @
2cd2d8f5
...
...
@@ -144,6 +144,9 @@ void lock_request_unit_test::test_start_pending(void) {
locktree_unit_test
::
locktree_test_release_lock
(
&
lt
,
txnid_a
,
one
,
one
);
request
.
destroy
();
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/lock_request_wait_time_callback.cc
View file @
2cd2d8f5
...
...
@@ -134,6 +134,9 @@ void lock_request_unit_test::test_wait_time_callback(void) {
release_lock_and_retry_requests
(
&
lt
,
txnid_a
,
one
,
one
);
request_a
.
destroy
();
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_conflicts.cc
View file @
2cd2d8f5
...
...
@@ -165,6 +165,9 @@ void locktree_unit_test::test_conflicts(void) {
lt
.
remove_overlapping_locks_for_txnid
(
txnid_a
,
three
,
four
);
invariant
(
no_row_locks
(
&
lt
));
}
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_create_destroy.cc
View file @
2cd2d8f5
...
...
@@ -112,6 +112,9 @@ void locktree_unit_test::test_create_destroy(void) {
invariant
(
info
->
pending_lock_requests
.
size
()
==
0
);
invariant
(
lt
.
m_sto_end_early_count
==
0
);
invariant
(
lt
.
m_sto_end_early_time
==
0
);
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_infinity.cc
View file @
2cd2d8f5
...
...
@@ -162,6 +162,9 @@ void locktree_unit_test::test_infinity(void) {
invariant
(
r
==
DB_LOCK_NOTGRANTED
);
lt
.
remove_overlapping_locks_for_txnid
(
txnid_a
,
toku_dbt_negative_infinity
(),
toku_dbt_positive_infinity
());
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_misc.cc
View file @
2cd2d8f5
...
...
@@ -134,6 +134,9 @@ void locktree_unit_test::test_misc(void) {
expected_descriptor
=
&
d2
;
r
=
lt
.
m_cmp
->
compare
(
&
dbt_a
,
&
dbt_b
);
invariant
(
r
==
expected_comparison_magic
);
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_overlapping_relock.cc
View file @
2cd2d8f5
...
...
@@ -203,6 +203,9 @@ void locktree_unit_test::test_overlapping_relock(void) {
// remove the other txnid's lock now
lt
.
remove_overlapping_locks_for_txnid
(
the_other_txnid
,
hundred
,
hundred
);
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
locktree/tests/locktree_single_txnid_optimization.cc
View file @
2cd2d8f5
...
...
@@ -169,6 +169,9 @@ void locktree_unit_test::test_single_txnid_optimization(void) {
buffer
.
destroy
();
}
lt
.
release_reference
();
lt
.
destroy
();
}
}
/* namespace toku */
...
...
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