Commit dc31486a authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: - bugfix stats

	- reader thread takes the freelist before running
parent ae3ffdf7
......@@ -207,6 +207,7 @@ fd_free(fd_t *entry)
VTAILQ_REMOVE(&insert_head, entry, insert_list);
entry->state = FD_EMPTY;
entry->ll = NULL;
open--;
}
static inline void
......@@ -607,6 +608,10 @@ main(int argc, char *argv[])
LOG_Log(LOG_ALERT, "Cannot init writer thread: %s\n", strerror(errnum));
exit(EXIT_FAILURE);
}
rdr_free = DATA_Take_Freelist(&reader_freelist);
assert(!VSTAILQ_EMPTY(&reader_freelist));
AZ(rdr_free);
WRT_Start();
/* XXX: configure wrt_waits and sleep interval? */
......
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