Commit f3800657 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: stats bugfix

parent dc31486a
......@@ -148,7 +148,8 @@ DATA_Init(void)
assert(bufidx == nrecords);
AZ(pthread_mutex_init(&freelist_lock, &attr_lock));
data_open = data_done = data_occ_hi = global_nfree = 0;
data_open = data_done = data_occ_hi = 0;
global_nfree = config.max_data;
return(0);
}
......
......@@ -611,7 +611,7 @@ main(int argc, char *argv[])
rdr_free = DATA_Take_Freelist(&reader_freelist);
assert(!VSTAILQ_EMPTY(&reader_freelist));
AZ(rdr_free);
assert(rdr_free == config.max_data);
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