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
05aea4e3
Unverified
Commit
05aea4e3
authored
Feb 02, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: Generalize fcr handler
parent
481980bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
fellow_storage.c
src/fellow_storage.c
+16
-4
No files found.
src/fellow_storage.c
View file @
05aea4e3
...
...
@@ -499,14 +499,13 @@ stvfe_dskoc_fco(struct worker *wrk,
* error handling
*/
/* handle fellow_cache_res for iterators */
static
int
stvfe_fcr_handle_iter
(
struct
worker
*
wrk
,
struct
objcore
*
oc
,
static
void
stvfe_fcr_handle
(
struct
worker
*
wrk
,
struct
objcore
*
oc
,
const
struct
stevedore
*
stv
,
const
struct
stvfe
*
stvfe
,
struct
fellow_cache_res
fcr
)
{
if
(
fcr
.
status
==
fcr_ok
)
return
(
fcr
.
r
.
integer
)
;
return
;
stvfe
->
stats
->
c_mem_obj_fail
++
;
...
...
@@ -517,6 +516,19 @@ stvfe_fcr_handle_iter(struct worker *wrk, struct objcore *oc,
HSH_Fail
(
oc
);
if
(
!
(
/*lint --e(641)*/
oc
->
flags
&
OC_F_BUSY
))
HSH_Kill
(
oc
);
}
/* handle fellow_cache_res for iterators */
static
int
stvfe_fcr_handle_iter
(
struct
worker
*
wrk
,
struct
objcore
*
oc
,
const
struct
stevedore
*
stv
,
const
struct
stvfe
*
stvfe
,
struct
fellow_cache_res
fcr
)
{
if
(
fcr
.
status
==
fcr_ok
)
return
(
fcr
.
r
.
integer
);
stvfe_fcr_handle
(
wrk
,
oc
,
stv
,
stvfe
,
fcr
);
return
(
-
1
);
}
...
...
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