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
d52435a7
Unverified
Commit
d52435a7
authored
Mar 02, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
noop refactor: invert condition
parent
c250c9cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
fellow_storage.c
src/fellow_storage.c
+8
-8
No files found.
src/fellow_storage.c
View file @
d52435a7
...
...
@@ -373,14 +373,14 @@ sfemem_objslim(struct worker *wrk, struct objcore *memoc)
const
struct
stvfe
*
stvfe
=
stv_stvfe
(
stv
);
uint32_t
xid
;
/* NOOP unless drain */
if
(
!
stvfe
->
shutdown
||
wrk
->
strangelove
!=
(
int
)
STVELOVE_IS_DRAIN
)
return
;
xid
=
(
uint32_t
)
ObjGetXID
(
wrk
,
memoc
);
/* for drain, mutate to exp object */
if
(
stvfe
->
shutdown
&&
wrk
->
strangelove
==
(
int
)
STVELOVE_IS_DRAIN
)
{
xid
=
(
uint32_t
)
ObjGetXID
(
wrk
,
memoc
);
sfemem_free
(
wrk
,
memoc
);
mutate_to_sfeexp
(
memoc
,
xid
);
sfemem_free
(
wrk
,
memoc
);
mutate_to_sfeexp
(
memoc
,
xid
);
return
;
}
}
static
void
v_matchproto_
(
objfree_f
)
...
...
@@ -444,7 +444,7 @@ sfedsk_objslim(struct worker *wrk, struct objcore *dskoc)
const
struct
stvfe
*
stvfe
=
stv_stvfe
(
stv
);
struct
fcoc
fcoc
;
/* for drain,
just mutate
*/
/* for drain,
mutate to exp object
*/
if
(
stvfe
->
shutdown
&&
wrk
->
strangelove
==
(
int
)
STVELOVE_IS_DRAIN
)
{
LRU_Remove
(
dskoc
);
mutate_to_sfeexp
(
dskoc
,
42
);
...
...
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