Commit d945413e authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: add a necessary dependency on the -DBESTATS

parent 806224be
......@@ -170,11 +170,12 @@ static inline logline_t
AZ(rdr_free);
signal_spscq_ready();
LOG_Log0(LOG_DEBUG, "Reader: waiting for free list");
AZ(pthread_mutex_lock(&data_ready_lock));
waiting = 1;
waits++;
if (!WRT_Waiting())
AZ(pthread_mutex_lock(&data_ready_lock));
if (!WRT_Waiting()) {
waits++;
AZ(pthread_cond_wait(&data_ready_cond, &data_ready_lock));
}
waiting = 0;
AZ(pthread_mutex_unlock(&data_ready_lock));
rdr_free = DATA_Take_Freelist(&reader_freelist);
......@@ -285,8 +286,10 @@ collect(struct logline_t *lp, enum VSL_tag_e tag, unsigned spec,
case SLT_TxRequest:
case SLT_TxURL:
case SLT_RxStatus:
#ifdef BESTATS
case SLT_BackendReq:
case SLT_Fetch_Hdr:
#endif
case SLT_Fetch_Body:
if (!lp->spec)
lp->spec = VSL_S_BACKEND;
......
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