Commit 704b300d authored by Geoff Simmons's avatar Geoff Simmons

LCK.pesi.bytes_tree -> .buf and .pesi_tree -> .tasks

parent 77f5552d
......@@ -18,6 +18,10 @@ varnish v1 -expect PESI.no_thread == 0
varnish v1 -vsc LCK.pesi.*
varnish v1 -expect LCK.pesi.stats.creat == 1
varnish v1 -expect LCK.pesi.stats.locks == 0
varnish v1 -expect LCK.pesi.buf.creat == 0
varnish v1 -expect LCK.pesi.buf.locks == 0
varnish v1 -expect LCK.pesi.tasks.creat == 0
varnish v1 -expect LCK.pesi.tasks.locks == 0
varnish v1 -vcl {backend b { .host = "${bad_ip}"; }}
......@@ -65,6 +69,10 @@ varnish v1 -expect PESI.no_thread == 0
varnish v1 -vsc LCK.pesi.*
varnish v1 -expect LCK.pesi.stats.creat == 1
varnish v1 -expect LCK.pesi.stats.locks == 0
varnish v1 -expect LCK.pesi.buf.creat == 0
varnish v1 -expect LCK.pesi.buf.locks == 0
varnish v1 -expect LCK.pesi.tasks.creat == 0
varnish v1 -expect LCK.pesi.tasks.locks == 0
varnish v1 -cli "vcl.show vcl1"
varnish v1 -cli "vcl.use vcl2"
......
......@@ -364,12 +364,9 @@ vmod_event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e e)
case VCL_EVENT_LOAD:
if (loadcnt++ == 0) {
AZ(vsc_seg);
lck_bytes_tree = Lck_CreateClass(&vsc_seg,
"pesi.bytes_tree");
lck_pesi_tree = Lck_CreateClass(&vsc_seg,
"pesi.pesi_tree");
lck_stats = Lck_CreateClass(&vsc_seg,
"pesi.stats");
lck_bytes_tree = Lck_CreateClass(&vsc_seg, "pesi.buf");
lck_pesi_tree = Lck_CreateClass(&vsc_seg, "pesi.tasks");
lck_stats = Lck_CreateClass(&vsc_seg, "pesi.stats");
AN(lck_bytes_tree);
AN(lck_pesi_tree);
AZ(pesi_vsc_seg);
......
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