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
21eb6a17
Unverified
Commit
21eb6a17
authored
Feb 09, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save VPI_count() info to struct wrk_vpi
So we have it available for Panics in a follow-up commit
parent
503e231b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
cache_vpi.c
bin/varnishd/cache/cache_vpi.c
+1
-0
vcc_interface.h
include/vcc_interface.h
+1
-0
No files found.
bin/varnishd/cache/cache_vpi.c
View file @
21eb6a17
...
@@ -67,6 +67,7 @@ VPI_count(VRT_CTX, unsigned u)
...
@@ -67,6 +67,7 @@ VPI_count(VRT_CTX, unsigned u)
CHECK_OBJ_NOTNULL
(
ctx
->
vcl
,
VCL_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
vcl
,
VCL_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
vcl
->
conf
,
VCL_CONF_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
vcl
->
conf
,
VCL_CONF_MAGIC
);
assert
(
u
<
ctx
->
vcl
->
conf
->
nref
);
assert
(
u
<
ctx
->
vcl
->
conf
->
nref
);
ctx
->
vpi
->
ref
=
u
;
if
(
ctx
->
vsl
!=
NULL
)
if
(
ctx
->
vsl
!=
NULL
)
VSLb
(
ctx
->
vsl
,
SLT_VCL_trace
,
"%s %u %u.%u.%u"
,
VSLb
(
ctx
->
vsl
,
SLT_VCL_trace
,
"%s %u %u.%u.%u"
,
ctx
->
vcl
->
loaded_name
,
u
,
ctx
->
vcl
->
conf
->
ref
[
u
].
source
,
ctx
->
vcl
->
loaded_name
,
u
,
ctx
->
vcl
->
conf
->
ref
[
u
].
source
,
...
...
include/vcc_interface.h
View file @
21eb6a17
...
@@ -58,6 +58,7 @@ struct wrk_vpi {
...
@@ -58,6 +58,7 @@ struct wrk_vpi {
unsigned
magic
;
unsigned
magic
;
#define WRK_VPI_MAGIC 0xaa3d3df3
#define WRK_VPI_MAGIC 0xaa3d3df3
unsigned
handling
;
unsigned
handling
;
unsigned
ref
;
// index into (struct vpi_ref)[]
};
};
...
...
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