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
db97d8ea
Commit
db97d8ea
authored
Nov 02, 2018
by
Federico G. Schwindt
Committed by
Dridi Boukelmoune
Feb 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug flag to keep VCL C and so files around
Enabled when using varnishtest -L.
parent
b0249dc8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
mgt_vcc.c
bin/varnishd/mgt/mgt_vcc.c
+2
-1
mgt_vcl.c
bin/varnishd/mgt/mgt_vcl.c
+2
-1
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+2
-1
debug_bits.h
include/tbl/debug_bits.h
+1
-0
No files found.
bin/varnishd/mgt/mgt_vcc.c
View file @
db97d8ea
...
@@ -380,6 +380,7 @@ mgt_VccCompile(struct cli *cli, struct vclprog *vcl, const char *vclname,
...
@@ -380,6 +380,7 @@ mgt_VccCompile(struct cli *cli, struct vclprog *vcl, const char *vclname,
}
}
AZ
(
fclose
(
fcs
));
AZ
(
fclose
(
fcs
));
if
(
!
MGT_DO_DEBUG
(
DBG_VCL_KEEP
))
(
void
)
unlink
(
vp
.
csrcfile
);
(
void
)
unlink
(
vp
.
csrcfile
);
free
(
vp
.
csrcfile
);
free
(
vp
.
csrcfile
);
...
...
bin/varnishd/mgt/mgt_vcl.c
View file @
db97d8ea
...
@@ -265,6 +265,7 @@ mgt_vcl_del(struct vclprog *vp)
...
@@ -265,6 +265,7 @@ mgt_vcl_del(struct vclprog *vp)
VTAILQ_REMOVE
(
&
vclhead
,
vp
,
list
);
VTAILQ_REMOVE
(
&
vclhead
,
vp
,
list
);
if
(
vp
->
fname
!=
NULL
)
{
if
(
vp
->
fname
!=
NULL
)
{
if
(
!
MGT_DO_DEBUG
(
DBG_VCL_KEEP
))
AZ
(
unlink
(
vp
->
fname
));
AZ
(
unlink
(
vp
->
fname
));
p
=
strrchr
(
vp
->
fname
,
'/'
);
p
=
strrchr
(
vp
->
fname
,
'/'
);
AN
(
p
);
AN
(
p
);
...
...
bin/varnishtest/vtc_varnish.c
View file @
db97d8ea
...
@@ -413,8 +413,9 @@ varnish_launch(struct varnish *v)
...
@@ -413,8 +413,9 @@ varnish_launch(struct varnish *v)
if
(
vtc_witness
)
if
(
vtc_witness
)
VSB_cat
(
vsb
,
" -p debug=+witness"
);
VSB_cat
(
vsb
,
" -p debug=+witness"
);
if
(
leave_temp
)
{
if
(
leave_temp
)
{
VSB_cat
(
vsb
,
" -p debug=+v
sm
_keep"
);
VSB_cat
(
vsb
,
" -p debug=+v
cl
_keep"
);
VSB_cat
(
vsb
,
" -p debug=+vmod_so_keep"
);
VSB_cat
(
vsb
,
" -p debug=+vmod_so_keep"
);
VSB_cat
(
vsb
,
" -p debug=+vsm_keep"
);
}
}
VSB_printf
(
vsb
,
" -l 2m"
);
VSB_printf
(
vsb
,
" -l 2m"
);
VSB_printf
(
vsb
,
" -p auto_restart=off"
);
VSB_printf
(
vsb
,
" -p auto_restart=off"
);
...
...
include/tbl/debug_bits.h
View file @
db97d8ea
...
@@ -50,6 +50,7 @@ DEBUG_BIT(H2_NOCHECK, h2_nocheck, "Disable various H2 checks")
...
@@ -50,6 +50,7 @@ DEBUG_BIT(H2_NOCHECK, h2_nocheck, "Disable various H2 checks")
DEBUG_BIT
(
VMOD_SO_KEEP
,
vmod_so_keep
,
"Keep copied VMOD libraries"
)
DEBUG_BIT
(
VMOD_SO_KEEP
,
vmod_so_keep
,
"Keep copied VMOD libraries"
)
DEBUG_BIT
(
PROCESSORS
,
processors
,
"Fetch/Deliver processors"
)
DEBUG_BIT
(
PROCESSORS
,
processors
,
"Fetch/Deliver processors"
)
DEBUG_BIT
(
PROTOCOL
,
protocol
,
"Protocol debugging"
)
DEBUG_BIT
(
PROTOCOL
,
protocol
,
"Protocol debugging"
)
DEBUG_BIT
(
VCL_KEEP
,
vcl_keep
,
"Keep VCL C and so files"
)
#undef DEBUG_BIT
#undef DEBUG_BIT
/*lint -restore */
/*lint -restore */
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