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
593867fc
Commit
593867fc
authored
Mar 18, 2008
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add debugging help
git-svn-id:
file:///svn/tokudb@2925
c7de825b-a66e-492c-adef-691d508d4ae1
parent
215366bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/lock_tree/locktree.c
src/lock_tree/locktree.c
+14
-0
No files found.
src/lock_tree/locktree.c
View file @
593867fc
...
...
@@ -36,6 +36,11 @@ static inline int toku__lt_callback(toku_lock_tree *tree, DB_TXN* txn) {
return
tree
->
lock_callback
?
tree
->
lock_callback
(
txn
,
tree
)
:
0
;
}
static
void
toku_breakpoint
(
toku_lock_tree
*
tree
)
{
assert
(
tree
!=
NULL
);
}
const
u_int32_t
__toku_default_buflen
=
2
;
static
const
DBT
__toku_lt_infinity
;
...
...
@@ -1281,6 +1286,9 @@ int toku_lt_acquire_range_read_lock(toku_lock_tree* tree, DB_TXN* txn,
r
=
0
;
cleanup:
if
(
r
==
ENOMEM
)
{
toku_breakpoint
(
tree
);
}
return
r
;
}
...
...
@@ -1396,6 +1404,9 @@ int toku_lt_acquire_write_lock(toku_lock_tree* tree, DB_TXN* txn,
r
=
0
;
cleanup:
if
(
r
==
ENOMEM
)
{
toku_breakpoint
(
tree
);
}
return
r
;
}
...
...
@@ -1463,6 +1474,9 @@ int toku_lt_acquire_range_write_lock(toku_lock_tree* tree, DB_TXN* txn,
r
=
0
;
cleanup:
if
(
r
==
ENOMEM
)
{
toku_breakpoint
(
tree
);
}
return
r
;
}
...
...
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