Commit 43155054 authored by Nils Goroll's avatar Nils Goroll

respect retries rather than restarts when called from fetch

parent cd761af1
......@@ -400,7 +400,11 @@ VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd, const struct vrt_ctx *ctx, ui
AN(ctx->req);
be_choice = (scalbn(random(), -31) > vslpd->altsrv_p);
restarts = ctx->req->restarts;
if (ctx->bo)
restarts = ctx->bo->retries;
else
restarts = ctx->req->restarts;
state.picklist = 0;
state.vslpd = vslpd;
......
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