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

Count number of times we go through vcl_error

parent e707a738
...@@ -267,6 +267,7 @@ cnt_error(struct worker *wrk, struct req *req) ...@@ -267,6 +267,7 @@ cnt_error(struct worker *wrk, struct req *req)
AZ(req->obj); AZ(req->obj);
AZ(req->busyobj); AZ(req->busyobj);
req->acct_req.error++;
bo = VBO_GetBusyObj(wrk, req); bo = VBO_GetBusyObj(wrk, req);
req->busyobj = bo; req->busyobj = bo;
AZ(bo->stats); AZ(bo->stats);
......
...@@ -15,3 +15,5 @@ client c1 { ...@@ -15,3 +15,5 @@ client c1 {
expect resp.status == 888 expect resp.status == 888
expect resp.http.connection == close expect resp.http.connection == close
} -run } -run
varnish v1 -expect s_error == 1
...@@ -35,5 +35,6 @@ ACCT(req) ...@@ -35,5 +35,6 @@ ACCT(req)
ACCT(pipe) ACCT(pipe)
ACCT(pass) ACCT(pass)
ACCT(fetch) ACCT(fetch)
ACCT(error)
ACCT(hdrbytes) ACCT(hdrbytes)
ACCT(bodybytes) ACCT(bodybytes)
...@@ -370,6 +370,10 @@ VSC_F(s_fetch, uint64_t, 1, 'a', ...@@ -370,6 +370,10 @@ VSC_F(s_fetch, uint64_t, 1, 'a',
"Total fetch", "Total fetch",
"" ""
) )
VSC_F(s_error, uint64_t, 1, 'a',
"Total error",
""
)
VSC_F(s_hdrbytes, uint64_t, 1, 'a', VSC_F(s_hdrbytes, uint64_t, 1, 'a',
"Total header bytes", "Total header bytes",
"" ""
......
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