Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
ZODB
Commits
babf5a82
Commit
babf5a82
authored
Jan 05, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added new "BTree Diagnostic Tools" subsubsection, pointing to the
BTrees.check module and to the BTree._check() method.
parent
04af5ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
doc/guide/modules.tex
doc/guide/modules.tex
+22
-0
No files found.
doc/guide/modules.tex
View file @
babf5a82
...
...
@@ -359,3 +359,25 @@ only with great care:
or implicitly) on an address-based comparison result will
eventually cause serious failure.
\end{enumerate}
\subsubsection
{
BTree Diagnostic Tools
}
A BTree (or TreeSet) is a complex data structure, really a graph of
variable-size nodes, connected in multiple ways via three distinct kinds
of C pointers. There are some tools available to help check internal
consistency of a BTree as a whole.
Most generally useful is the
\module
{
BTrees.check
}
module. The
\function
{
check.check()
}
function examines a BTree (or Bucket, Set, or
TreeSet) for value-based consistency, such as that the keys are in
strictly increasing order. See the function docstring for details.
The
\function
{
check.display()
}
function displays the internal structure
of a BTree.
BTrees and TreeSets also have a
\method
{_
check()
}
method. This verifies
that the (possibly many) internal pointers in a BTree or TreeSet
are mutually consistent, and raises
\exception
{
AssertionError
}
if they're
not. If a
\method
{_
check()
}
method call fails, in may point to a bug
in the implementation of BTrees or conflict resolution, or may point to
database corruption.
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