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
75955fba
Commit
75955fba
authored
Mar 08, 2011
by
Brad Hards
Committed by
Rusty Russell
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb2: trivial spelling fixes
parent
8da21eea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ccan/tdb2/transaction.c
ccan/tdb2/transaction.c
+5
-5
No files found.
ccan/tdb2/transaction.c
View file @
75955fba
...
...
@@ -53,13 +53,13 @@
- don't allow any locks to be held when a transaction starts,
otherwise we can end up with deadlock (plus lack of lock nesting
in
posix
locks would mean the lock is lost)
in
POSIX
locks would mean the lock is lost)
- if the caller gains a lock during the transaction but doesn't
release it then fail the commit
- allow for nested calls to tdb_transaction_start(), re-using the
existing transaction record. If the inner transaction is cancel
l
ed
existing transaction record. If the inner transaction is canceled
then a subsequent commit will fail
- keep a mirrored copy of the tdb hash chain heads to allow for the
...
...
@@ -68,7 +68,7 @@
- allow callers to mix transaction and non-transaction use of tdb,
although once a transaction is started then an exclusive lock is
gained until the transaction is committed or cancel
l
ed
gained until the transaction is committed or canceled
- the commit stategy involves first saving away all modified data
into a linearised buffer in the transaction recovery area, then
...
...
@@ -297,7 +297,7 @@ fail:
/*
write while in a transaction - this vari
e
nt never expands the transaction blocks, it only
write while in a transaction - this vari
a
nt never expands the transaction blocks, it only
updates existing blocks. This means it cannot change the recovery size
*/
static
void
transaction_write_existing
(
struct
tdb_context
*
tdb
,
tdb_off_t
off
,
...
...
@@ -534,7 +534,7 @@ enum TDB_ERROR tdb_transaction_start(struct tdb_context *tdb)
if
(
tdb_has_hash_locks
(
tdb
))
{
/* the caller must not have any locks when starting a
transaction as otherwise we'll be screwed by lack
of nested locks in
posix
*/
of nested locks in
POSIX
*/
return
tdb_logerr
(
tdb
,
TDB_ERR_LOCK
,
TDB_LOG_USE_ERROR
,
"tdb_transaction_start: cannot start a"
" transaction with locks held"
);
...
...
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