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
392bb195
Unverified
Commit
392bb195
authored
Jan 29, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache_test: fault injection for seglist load
parent
53984931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
fellow_cache.c
src/fellow_cache.c
+3
-8
No files found.
src/fellow_cache.c
View file @
392bb195
...
...
@@ -2185,22 +2185,18 @@ fellow_cache_seglists_load(struct worker *wrk, void *priv)
break
;
}
// XXX FIX FC_INJ (requires FCO_READFAIL error handling)
fcsl_mem
=
buddy_ptr_extent_nil
;
fdsl_mem
=
buddy_alloc1_ptr_extent_wait
(
fc
->
membuddy
,
FEP_META
,
next
.
size
,
0
);
fdsl
=
fdsl_mem
.
ptr
;
//if (FC_INJ || fdsl == NULL) {
if
(
fdsl
==
NULL
)
{
if
(
FC_INJ
||
fdsl
==
NULL
)
{
res
=
FCR_ALLOCFAIL
(
"disk seglist fdsl"
);
goto
err
;
}
assert
(
fdsl_mem
.
size
>=
next
.
size
);
ssz
=
fellow_io_pread_sync
(
fc
->
ffd
,
fdsl
,
next
.
size
,
next
.
off
);
//if (FC_INJ || ssz < 0 || (size_t)ssz != next.size) {
if
(
ssz
<
0
||
(
size_t
)
ssz
!=
next
.
size
)
{
if
(
FC_INJ
||
ssz
<
0
||
(
size_t
)
ssz
!=
next
.
size
)
{
res
=
FCR_IOFAIL
(
"disk seglist read"
);
goto
err
;
}
...
...
@@ -2212,8 +2208,7 @@ fellow_cache_seglists_load(struct worker *wrk, void *priv)
fcsl_mem
=
buddy_alloc1_ptr_extent_wait
(
fc
->
membuddy
,
FEP_META
,
SEGLIST_SIZE
(
fcsl
,
fdsl
->
nsegs
),
0
);
//if (FC_INJ || fcsl_mem.ptr == NULL) {
if
(
fcsl_mem
.
ptr
==
NULL
)
{
if
(
FC_INJ
||
fcsl_mem
.
ptr
==
NULL
)
{
res
=
FCR_ALLOCFAIL
(
"disk seglist fcsl"
);
goto
err
;
}
...
...
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