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
3f011090
Commit
3f011090
authored
Sep 25, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tdb: no longer need seqnum store hack as we can read after prepare.
parent
088b2a9f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
ccan/tdb/transaction.c
ccan/tdb/transaction.c
+1
-12
No files found.
ccan/tdb/transaction.c
View file @
3f011090
...
...
@@ -919,11 +919,6 @@ static int _tdb_transaction_prepare_commit(struct tdb_context *tdb)
return
0
;
}
#ifdef TDB_TRACE
/* store seqnum now, before reading becomes illegal. */
tdb_ofs_read
(
tdb
,
TDB_SEQNUM_OFS
,
&
tdb
->
transaction_prepare_seqnum
);
#endif
/* check for a null transaction */
if
(
tdb
->
transaction
->
blocks
==
NULL
)
{
return
0
;
...
...
@@ -1012,13 +1007,7 @@ int tdb_transaction_commit(struct tdb_context *tdb)
return
-
1
;
}
/* If we've prepared, can't read seqnum. */
if
(
tdb
->
transaction
->
prepared
)
{
tdb_trace_seqnum
(
tdb
,
tdb
->
transaction_prepare_seqnum
,
"tdb_transaction_commit"
);
}
else
{
tdb_trace
(
tdb
,
"tdb_transaction_commit"
);
}
if
(
tdb
->
transaction
->
transaction_error
)
{
tdb
->
ecode
=
TDB_ERR_IO
;
...
...
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