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
0a1e8cb7
Unverified
Commit
0a1e8cb7
authored
Jul 22, 2024
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fellow_cache: only run the estimate update after the current fcs is full
parent
2a9a7256
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
fellow_cache.c
src/fellow_cache.c
+17
-17
No files found.
src/fellow_cache.c
View file @
0a1e8cb7
...
...
@@ -5258,6 +5258,23 @@ fellow_busy_obj_getspace(struct fellow_busy *fbo, size_t *sz, uint8_t **ptr)
if
(
*
sz
+
fbo
->
sz_returned
>
fbo
->
fc
->
tune
->
objsize_max
)
*
sz
=
fbo
->
fc
->
tune
->
objsize_max
-
fbo
->
sz_returned
;
fcs
=
fbo
->
body_seg
;
if
(
fcs
!=
NULL
&&
fcs
->
state
==
FCS_BUSY
)
{
AN
(
fcs
->
alloc
.
size
);
if
(
fcs
->
u
.
fcs
.
len
<
fcs
->
alloc
.
size
)
{
spc
=
fcs
->
alloc
.
size
-
fcs
->
u
.
fcs
.
len
;
assert
(
spc
>
0
);
if
(
spc
<
*
sz
)
*
sz
=
spc
;
*
ptr
=
(
uint8_t
*
)
fcs
->
alloc
.
ptr
+
fcs
->
u
.
fcs
.
len
;
return
(
FCR_OK
(
fbo
));
}
assert
(
fcs
->
u
.
fcs
.
len
==
fcs
->
alloc
.
size
);
unbusy
=
fcs
;
fcs
=
NULL
;
}
/*
* for content-length, varnish-cache will ask for less and less.
*
...
...
@@ -5285,23 +5302,6 @@ fellow_busy_obj_getspace(struct fellow_busy *fbo, size_t *sz, uint8_t **ptr)
fbo
->
sz_increment
<<=
1
;
}
}
fcs
=
fbo
->
body_seg
;
if
(
fcs
!=
NULL
&&
fcs
->
state
==
FCS_BUSY
)
{
AN
(
fcs
->
alloc
.
size
);
if
(
fcs
->
u
.
fcs
.
len
<
fcs
->
alloc
.
size
)
{
spc
=
fcs
->
alloc
.
size
-
fcs
->
u
.
fcs
.
len
;
assert
(
spc
>
0
);
if
(
spc
<
*
sz
)
*
sz
=
spc
;
*
ptr
=
(
uint8_t
*
)
fcs
->
alloc
.
ptr
+
fcs
->
u
.
fcs
.
len
;
return
(
FCR_OK
(
fbo
));
}
assert
(
fcs
->
u
.
fcs
.
len
==
fcs
->
alloc
.
size
);
unbusy
=
fcs
;
fcs
=
NULL
;
}
if
(
fcs
==
NULL
)
{
fcr
=
fellow_busy_body_seg_next
(
fbo
);
if
(
fcr
.
status
!=
fcr_ok
)
...
...
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