Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
2709adb4
Commit
2709adb4
authored
Jun 10, 2018
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos spotted by @zarvox.
parent
648b335a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
table.c++
c++/src/kj/table.c++
+3
-3
table.h
c++/src/kj/table.h
+3
-3
No files found.
c++/src/kj/table.c++
View file @
2709adb4
...
...
@@ -172,7 +172,7 @@ size_t BTreeImpl::verifyNode(size_t size, FunctionParam<bool(uint, uint)>& f,
}
}
void
BTreeImpl
::
logInconsitency
()
const
{
void
BTreeImpl
::
logInconsi
s
tency
()
const
{
KJ_LOG
(
ERROR
,
"BTreeIndex detected tree state inconsistency. This can happen if you create a kj::Table "
"with a b-tree index and you modify the rows in the table post-indexing in a way that would "
...
...
@@ -437,7 +437,7 @@ void BTreeImpl::erase(uint row, const SearchKey& searchKey) {
*
fixup
=
leaf
.
rows
[
r
-
1
];
}
}
else
{
logInconsitency
();
logInconsi
s
tency
();
}
}
}
...
...
@@ -535,7 +535,7 @@ void BTreeImpl::renumber(uint oldRow, uint newRow, const SearchKey& searchKey) {
if
(
leaf
.
rows
[
r
]
==
oldRow
)
{
leaf
.
rows
[
r
]
=
newRow
;
}
else
{
logInconsitency
();
logInconsi
s
tency
();
}
}
}
...
...
c++/src/kj/table.h
View file @
2709adb4
...
...
@@ -277,7 +277,7 @@ class TreeIndex;
// class Callbacks {
// public:
// bool isBefore(const Row&, const Row&) const;
// // Returns true if the row on te left comes before the row on the right.
// // Returns true if the row on t
h
e left comes before the row on the right.
//
// bool matches(const Row&, const Row&) const;
// // Returns true if the rows "match".
...
...
@@ -932,7 +932,7 @@ public:
BTreeImpl
();
~
BTreeImpl
()
noexcept
(
false
);
void
logInconsitency
()
const
;
void
logInconsi
s
tency
()
const
;
void
reserve
(
size_t
size
);
...
...
@@ -1470,7 +1470,7 @@ private:
uint
capacity
;
Link
*
links
;
// links[0] is special: links[0].next points to the first link, links[0].prev points to the last.
// links[n+1] corresponds
n
o row n.
// links[n+1] corresponds
t
o row n.
kj
::
Maybe
<
size_t
>
insertImpl
(
size_t
pos
);
void
eraseImpl
(
size_t
pos
);
...
...
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