Commit dc5e096a authored by Nils Goroll's avatar Nils Goroll

Add a debug bit to always keep the vsm file

parent 335708cd
......@@ -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();
......
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment