Commit 08fad225 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add bereq.retries variable

parent 1f308d3b
......@@ -507,6 +507,7 @@ struct busyobj {
* All fields from refcount and down are zeroed when the busyobj
* is recycled.
*/
int retries;
unsigned refcount;
double t_fetch;
uint16_t err_code;
......
......@@ -383,6 +383,15 @@ VRT_r_req_restarts(const struct vrt_ctx *ctx)
return (ctx->req->restarts);
}
long
VRT_r_bereq_retries(const struct vrt_ctx *ctx)
{
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(ctx->bo, BUSYOBJ_MAGIC);
return (ctx->bo->retries);
}
/*--------------------------------------------------------------------
* NB: TTL is relative to when object was created, whereas grace and
* keep are relative to ttl.
......
......@@ -217,6 +217,11 @@ sp_variables = (
( 'recv',),
( 'recv',),
),
('bereq.retries',
'INT',
( 'backend',),
( ),
),
('bereq.backend',
'BACKEND',
( 'backend', ),
......
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