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
14ec8920
Commit
14ec8920
authored
Jul 15, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sequence logic bug, and satisfies() logic fix/cleanup.
parent
f2050233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
ccan/tdb/tools/replay_trace.c
ccan/tdb/tools/replay_trace.c
+3
-8
No files found.
ccan/tdb/tools/replay_trace.c
View file @
14ec8920
...
...
@@ -1023,18 +1023,13 @@ static bool satisfies(const TDB_DATA *key, const TDB_DATA *data,
assert
(
data
!=
&
must_not_exist
);
assert
(
data
!=
&
not_exists_or_empty
);
/* must_not_exist == must_not_exist, must_exist == must_exist, or
not_exists_or_empty == not_exists_or_empty. */
if
(
data
->
dsize
==
need
->
dsize
&&
data
->
dptr
==
need
->
dptr
)
return
true
;
/* Must not exist? data must not exist. */
if
(
need
==
&
must_not_exist
)
return
data
->
dptr
==
NULL
;
return
data
==
&
tdb_null
;
/* Must exist? */
if
(
need
==
&
must_exist
)
return
data
->
dptr
!=
NULL
;
return
data
!=
&
tdb_null
;
/* Either noexist or empty. */
if
(
need
==
&
not_exists_or_empty
)
...
...
@@ -1250,7 +1245,7 @@ static void add_dependency(void *ctx,
*/
else
if
(
in_traverse
(
op
[
needs_file
],
needs_opnum
))
{
struct
op
*
need
=
&
op
[
needs_file
][
needs_opnum
];
if
(
op
[
needs_file
][
need
->
group_start
].
serial
<
if
(
op
[
needs_file
][
need
->
group_start
].
serial
>
op
[
satisfies_file
][
satisfies_opnum
].
serial
)
{
needs_opnum
=
need
->
group_start
;
}
...
...
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