Commit beb631a8 authored by Julian Wiesener's avatar Julian Wiesener

update for varnish master

parent ff3e6630
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include "cache/cache.h" #include "cache/cache.h"
#include "cache/cache_backend.h" #include "cache/cache_director.h"
#include "vrt.h" #include "vrt.h"
#include "vbm.h" #include "vbm.h"
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <time.h> #include <time.h>
#include "cache/cache.h" #include "cache/cache.h"
#include "cache/cache_backend.h" #include "cache/cache_director.h"
#include "vrt.h" #include "vrt.h"
...@@ -178,7 +178,7 @@ vslp_choose_next_healthy(struct vslp_state *state, uint32_t n_retry) ...@@ -178,7 +178,7 @@ vslp_choose_next_healthy(struct vslp_state *state, uint32_t n_retry)
be = state->vslpd->backend[chosen]; be = state->vslpd->backend[chosen];
AN(be); AN(be);
if(be->healthy(be, NULL)) if(be->healthy(be, NULL, NULL))
{ {
vslp_be_healthy(state, chosen); vslp_be_healthy(state, chosen);
break; break;
...@@ -368,7 +368,7 @@ vslpdir_any_healthy(struct vslpdir *vslpd) ...@@ -368,7 +368,7 @@ vslpdir_any_healthy(struct vslpdir *vslpd)
for (u = 0; u < vslpd->n_backend; u++) { for (u = 0; u < vslpd->n_backend; u++) {
be = vslpd->backend[u]; be = vslpd->backend[u];
CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC); CHECK_OBJ_NOTNULL(be, DIRECTOR_MAGIC);
if (be->healthy(be, NULL)) { if (be->healthy(be, NULL, NULL)) {
retval = 1; retval = 1;
break; break;
} }
...@@ -459,7 +459,7 @@ VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd, const struct vrt_ctx *ctx, ui ...@@ -459,7 +459,7 @@ VCL_BACKEND vslpdir_pick_be(struct vslpdir *vslpd, const struct vrt_ctx *ctx, ui
return (be); return (be);
} }
if (be->healthy(be, NULL)) if (be->healthy(be, ctx->bo, NULL))
{ {
if(!vslp_be_healthy(&state, chosen)) if(!vslp_be_healthy(&state, chosen))
be_choice ^= be_choice; be_choice ^= be_choice;
......
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