Commit a609c575 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Merge r5210: Lock the sms counters properly

Fixes: #768



git-svn-id: http://www.varnish-cache.org/svn/branches/2.1@5360 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 82931a96
......@@ -121,6 +121,8 @@ SMS_Finish(struct object *obj)
sto->len = vsb_len(vsb);
sto->space = vsb_len(vsb);
obj->len = sto->len;
Lck_Lock(&sms_mtx);
VSL_stats->sms_nbytes += sto->len;
VSL_stats->sms_balloc += sto->len;
Lck_Unlock(&sms_mtx);
}
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