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
7d90d625
Commit
7d90d625
authored
Jun 14, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move VRT_count() from sess to req
parent
f80c6e35
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
cache_vrt.c
bin/varnishd/cache/cache_vrt.c
+5
-5
vrt.h
include/vrt.h
+2
-1
vcc_parse.c
lib/libvcl/vcc_parse.c
+1
-1
No files found.
bin/varnishd/cache/cache_vrt.c
View file @
7d90d625
...
...
@@ -70,15 +70,15 @@ VRT_error(const struct sess *sp, unsigned code, const char *reason)
/*--------------------------------------------------------------------*/
void
VRT_count
(
const
struct
sess
*
sp
,
unsigned
u
)
VRT_count
(
struct
req
*
req
,
unsigned
u
)
{
if
(
sp
==
NULL
)
if
(
req
==
NULL
)
return
;
CHECK_OBJ_NOTNULL
(
sp
,
SESS
_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ
_MAGIC
);
if
(
cache_param
->
vcl_trace
)
VSLb
(
sp
->
req
->
vsl
,
SLT_VCL_trace
,
"%u %u.%u"
,
u
,
sp
->
req
->
vcl
->
ref
[
u
].
line
,
sp
->
req
->
vcl
->
ref
[
u
].
pos
);
VSLb
(
req
->
vsl
,
SLT_VCL_trace
,
"%u %u.%u"
,
u
,
req
->
vcl
->
ref
[
u
].
line
,
req
->
vcl
->
ref
[
u
].
pos
);
}
/*--------------------------------------------------------------------*/
...
...
include/vrt.h
View file @
7d90d625
...
...
@@ -32,6 +32,7 @@
*/
struct
sess
;
struct
req
;
struct
vsb
;
struct
cli
;
struct
director
;
...
...
@@ -154,7 +155,7 @@ void VRT_ban(struct sess *sp, char *, ...);
void
VRT_ban_string
(
struct
sess
*
sp
,
const
char
*
);
void
VRT_purge
(
const
struct
sess
*
sp
,
double
ttl
,
double
grace
);
void
VRT_count
(
const
struct
sess
*
,
unsigned
);
void
VRT_count
(
struct
req
*
,
unsigned
);
int
VRT_rewrite
(
const
char
*
,
const
char
*
);
void
VRT_error
(
const
struct
sess
*
,
unsigned
,
const
char
*
);
int
VRT_switch_config
(
const
char
*
);
...
...
lib/libvcl/vcc_parse.c
View file @
7d90d625
...
...
@@ -47,7 +47,7 @@ static void vcc_Compound(struct vcc *tl);
} while (0)
#define C(tl, sep) do { \
Fb(tl, 1, "VRT_count(
sp
, %u)%s\n", ++tl->cnt, sep); \
Fb(tl, 1, "VRT_count(
req
, %u)%s\n", ++tl->cnt, sep); \
tl->t->cnt = tl->cnt; \
} while (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