Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
3e087be3
Commit
3e087be3
authored
Mar 14, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kill objects on "ttl + max(grace,keep)" rather than "ttl + grace + keep"
parent
13d6057a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
cache_expire.c
bin/varnishd/cache_expire.c
+5
-2
No files found.
bin/varnishd/cache_expire.c
View file @
3e087be3
...
...
@@ -110,7 +110,7 @@ EXP_Keep(const struct sess *sp, const struct object *o)
r
=
o
->
exp
.
keep
;
if
(
sp
!=
NULL
&&
sp
->
exp
.
keep
>
0
.
&&
sp
->
exp
.
keep
<
r
)
r
=
sp
->
exp
.
keep
;
return
(
EXP_
Grace
(
sp
,
o
)
+
r
);
return
(
EXP_
Ttl
(
sp
,
o
)
+
r
);
}
double
...
...
@@ -145,7 +145,7 @@ static int
update_object_when
(
const
struct
object
*
o
)
{
struct
objcore
*
oc
;
double
when
;
double
when
,
w2
;
CHECK_OBJ_NOTNULL
(
o
,
OBJECT_MAGIC
);
oc
=
o
->
objcore
;
...
...
@@ -153,6 +153,9 @@ update_object_when(const struct object *o)
Lck_AssertHeld
(
&
exp_mtx
);
when
=
EXP_Keep
(
NULL
,
o
);
w2
=
EXP_Grace
(
NULL
,
o
);
if
(
w2
>
when
)
when
=
w2
;
assert
(
!
isnan
(
when
));
if
(
when
==
oc
->
timer_when
)
return
(
0
);
...
...
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