Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
87d99348
Commit
87d99348
authored
Jan 16, 2011
by
Brad Hards
Committed by
Rusty Russell
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb: spelling fixes
parent
c39bd505
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ccan/tdb/freelist.c
ccan/tdb/freelist.c
+1
-1
ccan/tdb/tdb.c
ccan/tdb/tdb.c
+1
-1
ccan/tdb/traverse.c
ccan/tdb/traverse.c
+2
-2
No files found.
ccan/tdb/freelist.c
View file @
87d99348
...
...
@@ -98,7 +98,7 @@ static int update_tailer(struct tdb_context *tdb, tdb_off_t offset,
}
/* Add an element into the freelist. Merge adjacent records if
nec
c
essary. */
necessary. */
int
tdb_free
(
struct
tdb_context
*
tdb
,
tdb_off_t
offset
,
struct
tdb_record
*
rec
)
{
/* Allocation and tailer lock */
...
...
ccan/tdb/tdb.c
View file @
87d99348
...
...
@@ -213,7 +213,7 @@ TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key)
* function. The parsing function is executed under the chain read lock, so it
* should be fast and should not block on other syscalls.
*
* DONT CALL OTHER TDB CALLS FROM THE PARSER, THIS MIGHT LEAD TO SEGFAULTS.
* DON
'
T CALL OTHER TDB CALLS FROM THE PARSER, THIS MIGHT LEAD TO SEGFAULTS.
*
* For mmapped tdb's that do not have a transaction open it points the parsing
* function directly at the mmap area, it avoids the malloc/memcpy in this
...
...
ccan/tdb/traverse.c
View file @
87d99348
...
...
@@ -39,7 +39,7 @@ static tdb_off_t tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock
/* Lock each chain from the start one. */
for
(;
tlock
->
hash
<
tdb
->
header
.
hash_size
;
tlock
->
hash
++
)
{
if
(
!
tlock
->
off
&&
tlock
->
hash
!=
0
)
{
/* this is an optimi
s
ation for the common case where
/* this is an optimi
z
ation for the common case where
the hash chain is empty, which is particularly
common for the use of tdb with ldb, where large
hashes are used. In that case we spend most of our
...
...
@@ -53,7 +53,7 @@ static tdb_off_t tdb_next_lock(struct tdb_context *tdb, struct tdb_traverse_lock
lock, so instead we get the lock and re-fetch the
value below.
Notice that not doing this optimi
s
ation on the
Notice that not doing this optimi
z
ation on the
first hash chain is critical. We must guarantee
that we have done at least one fcntl lock at the
start of a search to guarantee that memory is
...
...
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