Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
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
unique-xids
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)
...
@@ -70,15 +70,15 @@ VRT_error(const struct sess *sp, unsigned code, const char *reason)
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
void
void
VRT_count
(
const
struct
sess
*
sp
,
unsigned
u
)
VRT_count
(
struct
req
*
req
,
unsigned
u
)
{
{
if
(
sp
==
NULL
)
if
(
req
==
NULL
)
return
;
return
;
CHECK_OBJ_NOTNULL
(
sp
,
SESS
_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ
_MAGIC
);
if
(
cache_param
->
vcl_trace
)
if
(
cache_param
->
vcl_trace
)
VSLb
(
sp
->
req
->
vsl
,
SLT_VCL_trace
,
"%u %u.%u"
,
u
,
VSLb
(
req
->
vsl
,
SLT_VCL_trace
,
"%u %u.%u"
,
u
,
sp
->
req
->
vcl
->
ref
[
u
].
line
,
sp
->
req
->
vcl
->
ref
[
u
].
pos
);
req
->
vcl
->
ref
[
u
].
line
,
req
->
vcl
->
ref
[
u
].
pos
);
}
}
/*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*/
...
...
include/vrt.h
View file @
7d90d625
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
*/
*/
struct
sess
;
struct
sess
;
struct
req
;
struct
vsb
;
struct
vsb
;
struct
cli
;
struct
cli
;
struct
director
;
struct
director
;
...
@@ -154,7 +155,7 @@ void VRT_ban(struct sess *sp, char *, ...);
...
@@ -154,7 +155,7 @@ void VRT_ban(struct sess *sp, char *, ...);
void
VRT_ban_string
(
struct
sess
*
sp
,
const
char
*
);
void
VRT_ban_string
(
struct
sess
*
sp
,
const
char
*
);
void
VRT_purge
(
const
struct
sess
*
sp
,
double
ttl
,
double
grace
);
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
*
);
int
VRT_rewrite
(
const
char
*
,
const
char
*
);
void
VRT_error
(
const
struct
sess
*
,
unsigned
,
const
char
*
);
void
VRT_error
(
const
struct
sess
*
,
unsigned
,
const
char
*
);
int
VRT_switch_config
(
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);
...
@@ -47,7 +47,7 @@ static void vcc_Compound(struct vcc *tl);
} while (0)
} while (0)
#define C(tl, sep) do { \
#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; \
tl->t->cnt = tl->cnt; \
} while (0)
} 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