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
d2257489
Commit
d2257489
authored
Feb 03, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ObjSnipe() is a better name
parent
7ddc5950
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
cache.h
bin/varnishd/cache/cache.h
+1
-1
cache_expire.c
bin/varnishd/cache/cache_expire.c
+1
-1
cache_obj.c
bin/varnishd/cache/cache_obj.c
+2
-2
No files found.
bin/varnishd/cache/cache.h
View file @
d2257489
...
...
@@ -857,7 +857,7 @@ void ObjSetState(const struct objcore *, enum boc_state_e next);
void
ObjWaitState
(
const
struct
objcore
*
,
enum
boc_state_e
want
);
void
ObjTrimStore
(
struct
worker
*
,
struct
objcore
*
);
void
ObjTouch
(
struct
worker
*
,
struct
objcore
*
,
double
now
);
int
Obj
Kill
(
const
struct
worker
*
,
struct
objcore
*
);
int
Obj
Snipe
(
const
struct
worker
*
,
struct
objcore
*
);
unsigned
ObjGetXID
(
struct
worker
*
,
struct
objcore
*
);
uint64_t
ObjGetLen
(
struct
worker
*
,
struct
objcore
*
);
void
ObjUpdateMeta
(
struct
worker
*
,
struct
objcore
*
);
...
...
bin/varnishd/cache/cache_expire.c
View file @
d2257489
...
...
@@ -296,7 +296,7 @@ EXP_NukeOne(struct worker *wrk, struct lru *lru)
AZ
(
oc
->
lru_flags
&
OC_LRU_OFFLRU
);
if
(
Obj
Kill
(
wrk
,
oc
))
{
if
(
Obj
Snipe
(
wrk
,
oc
))
{
VSC_C_main
->
n_lru_nuked
++
;
// XXX per lru ?
VTAILQ_REMOVE
(
&
lru
->
lru_head
,
oc
,
lru_list
);
oc
->
lru_flags
|=
OC_LRU_OFFLRU
;
...
...
bin/varnishd/cache/cache_obj.c
View file @
d2257489
...
...
@@ -370,13 +370,13 @@ ObjTouch(struct worker *wrk, struct objcore *oc, double now)
}
/*====================================================================
* Obj
Kill
()
* Obj
Snipe
()
*
* If objcore is idle, gain a ref and mark it dead.
*/
int
Obj
Kill
(
const
struct
worker
*
wrk
,
struct
objcore
*
oc
)
Obj
Snipe
(
const
struct
worker
*
wrk
,
struct
objcore
*
oc
)
{
int
retval
=
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