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
dc5e096a
Commit
dc5e096a
authored
Jul 14, 2015
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a debug bit to always keep the vsm file
parent
335708cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+7
-1
debug_bits.h
include/tbl/debug_bits.h
+1
-0
No files found.
bin/varnishd/mgt/mgt_child.c
View file @
dc5e096a
...
...
@@ -94,6 +94,12 @@ MGT_FEATURE(enum feature_bits x)
return
(
mgt_param
.
feature_bits
[(
unsigned
)
x
>>
3
]
&
(
0x80U
>>
((
unsigned
)
x
&
7
)));
}
static
inline
int
MGT_DO_DEBUG
(
enum
debug_bits
x
)
{
return
(
mgt_param
.
debug_bits
[(
unsigned
)
x
>>
3
]
&
(
0x80U
>>
((
unsigned
)
x
&
7
)));
}
static
void
mgt_reap_child
(
void
);
...
...
@@ -528,7 +534,7 @@ mgt_reap_child(void)
mgt_SHM_Destroy
(
1
);
VSC_C_mgt
->
child_panic
=
++
static_VSC_C_mgt
.
child_panic
;
}
else
{
mgt_SHM_Destroy
(
0
);
mgt_SHM_Destroy
(
MGT_DO_DEBUG
(
DBG_VSM_KEEP
)
);
}
mgt_SHM_Create
();
mgt_SHM_Commit
();
...
...
include/tbl/debug_bits.h
View file @
dc5e096a
...
...
@@ -42,4 +42,5 @@ DEBUG_BIT(ESI_CHOP, esi_chop, "Chop ESI fetch to bits")
DEBUG_BIT
(
FLUSH_HEAD
,
flush_head
,
"Flush after http1 head"
)
DEBUG_BIT
(
VTC_MODE
,
vtc_mode
,
"Varnishtest Mode"
)
DEBUG_BIT
(
WITNESS
,
witness
,
"Emit WITNESS lock records"
)
DEBUG_BIT
(
VSM_KEEP
,
vsm_keep
,
"Keep the VSM file on restart"
)
/*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