Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
slash
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
slash
Commits
2f91e129
Unverified
Commit
2f91e129
authored
Nov 28, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coverage: fellow_cache_obj_slim()
parent
6ef38a04
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
fellow_cache.c
src/fellow_cache.c
+12
-0
No files found.
src/fellow_cache.c
View file @
2f91e129
...
...
@@ -5506,11 +5506,13 @@ static void test_fellow_cache_obj_iter_final(
{
struct
fellow_cache_res
fcr
;
struct
fellow_cache_obj
*
fco
;
struct
fellow_cache_seg
*
fcs
;
unsigned
char
h2
[
SHA256_LEN
];
struct
objcore
*
toc
,
ocmem
[
1
];
VSHA256_CTX
sha256ctx
;
uintptr_t
priv2
;
unsigned
u
,
refcnt
;
struct
fcscursor
c
;
int
injcount
;
INIT_OBJ
(
ocmem
,
OBJCORE_MAGIC
);
...
...
@@ -5532,6 +5534,16 @@ static void test_fellow_cache_obj_iter_final(
if
(
injcount
==
0
)
return
;
fcsc_init
(
&
c
,
&
(
*
fcop
)
->
seglist
);
if
((
fcs
=
FCSC_NEXT
(
&
c
))
!=
NULL
)
{
while
(
fcs
->
state
==
FCS_READING
||
fcs
->
state
==
FCS_WRITING
)
usleep
(
100
);
assert
(
fcs
->
state
==
FCS_INCORE
);
AZ
(
fcs
->
refcnt
);
}
else
WRONG
(
"no seg"
);
fellow_cache_obj_slim
(
fc
,
*
fcop
);
// remember object and deref
priv2
=
(
*
fcop
)
->
fdb
.
fdb
;
refcnt
=
FCO_REFCNT
(
*
fcop
);
...
...
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