Commit dfe6df9a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rename bo->filter_list -> bo->vfp_filter_list

parent 276ca5e8
...@@ -382,7 +382,7 @@ struct busyobj { ...@@ -382,7 +382,7 @@ struct busyobj {
struct worker *wrk; struct worker *wrk;
struct vfp_ctx *vfc; struct vfp_ctx *vfc;
const char *filter_list; const char *vfp_filter_list;
struct ws ws[1]; struct ws ws[1];
uintptr_t ws_bo; uintptr_t ws_bo;
......
...@@ -127,7 +127,7 @@ vbf_cleanup(struct busyobj *bo) ...@@ -127,7 +127,7 @@ vbf_cleanup(struct busyobj *bo)
CHECK_OBJ_NOTNULL(vfc, VFP_CTX_MAGIC); CHECK_OBJ_NOTNULL(vfc, VFP_CTX_MAGIC);
bo->acct.beresp_bodybytes += VFP_Close(vfc); bo->acct.beresp_bodybytes += VFP_Close(vfc);
bo->filter_list = NULL; bo->vfp_filter_list = NULL;
if (bo->director_state != DIR_S_NULL) if (bo->director_state != DIR_S_NULL)
VDI_Finish(bo); VDI_Finish(bo);
...@@ -147,7 +147,7 @@ Bereq_Rollback(struct busyobj *bo) ...@@ -147,7 +147,7 @@ Bereq_Rollback(struct busyobj *bo)
VCL_TaskLeave(bo->privs); VCL_TaskLeave(bo->privs);
VCL_TaskEnter(bo->privs); VCL_TaskEnter(bo->privs);
HTTP_Clone(bo->bereq, bo->bereq0); HTTP_Clone(bo->bereq, bo->bereq0);
bo->filter_list = NULL; bo->vfp_filter_list = NULL;
bo->err_reason = NULL; bo->err_reason = NULL;
WS_Rollback(bo->bereq->ws, bo->ws_bo); WS_Rollback(bo->bereq->ws, bo->ws_bo);
WS_Rollback(bo->ws, bo->ws_bo); WS_Rollback(bo->ws, bo->ws_bo);
...@@ -635,13 +635,13 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo) ...@@ -635,13 +635,13 @@ vbf_stp_fetch(struct worker *wrk, struct busyobj *bo)
http_Unset(bo->beresp, H_Content_Encoding); http_Unset(bo->beresp, H_Content_Encoding);
bo->do_gzip = bo->do_gunzip = 0; bo->do_gzip = bo->do_gunzip = 0;
bo->do_stream = 0; bo->do_stream = 0;
bo->filter_list = ""; bo->vfp_filter_list = "";
} else if (bo->filter_list == NULL) { } else if (bo->vfp_filter_list == NULL) {
bo->filter_list = VBF_Get_Filter_List(bo); bo->vfp_filter_list = VBF_Get_Filter_List(bo);
} }
if (bo->filter_list == NULL || if (bo->vfp_filter_list == NULL ||
VCL_StackVFP(bo->vfc, bo->vcl, bo->filter_list)) { VCL_StackVFP(bo->vfc, bo->vcl, bo->vfp_filter_list)) {
(bo)->htc->doclose = SC_OVERLOAD; (bo)->htc->doclose = SC_OVERLOAD;
vbf_cleanup(bo); vbf_cleanup(bo);
return (F_STP_ERROR); return (F_STP_ERROR);
......
...@@ -391,8 +391,8 @@ pan_busyobj(struct vsb *vsb, const struct busyobj *bo) ...@@ -391,8 +391,8 @@ pan_busyobj(struct vsb *vsb, const struct busyobj *bo)
if (bo->vfc != NULL) if (bo->vfc != NULL)
pan_vfp(vsb, bo->vfc); pan_vfp(vsb, bo->vfc);
if (bo->filter_list != NULL) if (bo->vfp_filter_list != NULL)
VSB_printf(vsb, "filter_list = \"%s\",\n", bo->filter_list); VSB_printf(vsb, "filter_list = \"%s\",\n", bo->vfp_filter_list);
WS_Panic(bo->ws, vsb); WS_Panic(bo->ws, vsb);
VSB_printf(vsb, "ws_bo = %p,\n", (void *)bo->ws_bo); VSB_printf(vsb, "ws_bo = %p,\n", (void *)bo->ws_bo);
......
...@@ -386,14 +386,14 @@ resp_Get_Filter_List(struct req *req) ...@@ -386,14 +386,14 @@ resp_Get_Filter_List(struct req *req)
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
#define FILTER_VAR(vcl, in, func) \ #define FILTER_VAR(vcl, in, func, fld) \
VCL_STRING \ VCL_STRING \
VRT_r_##vcl##_filters(VRT_CTX) \ VRT_r_##vcl##_filters(VRT_CTX) \
{ \ { \
\ \
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \ CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); \
if (ctx->in->filter_list != NULL) \ if (ctx->in->fld != NULL) \
return(ctx->in->filter_list); \ return(ctx->in->fld); \
return (func(ctx->in)); \ return (func(ctx->in)); \
} \ } \
\ \
...@@ -410,8 +410,8 @@ resp_Get_Filter_List(struct req *req) ...@@ -410,8 +410,8 @@ resp_Get_Filter_List(struct req *req)
if (b == NULL) \ if (b == NULL) \
WS_MarkOverflow(ctx->in->ws); \ WS_MarkOverflow(ctx->in->ws); \
else \ else \
ctx->in->filter_list = b; \ ctx->in->fld = b; \
} }
FILTER_VAR(beresp, bo, VBF_Get_Filter_List) FILTER_VAR(beresp, bo, VBF_Get_Filter_List, vfp_filter_list)
FILTER_VAR(resp, req, resp_Get_Filter_List) FILTER_VAR(resp, req, resp_Get_Filter_List, filter_list)
...@@ -189,9 +189,10 @@ VRT_r_obj_reason(VRT_CTX) ...@@ -189,9 +189,10 @@ VRT_r_obj_reason(VRT_CTX)
static inline int static inline int
beresp_filter_fixed(VRT_CTX, const char *s) beresp_filter_fixed(VRT_CTX, const char *s)
{ {
if (ctx->bo->filter_list == NULL) if (ctx->bo->vfp_filter_list == NULL)
return (0); return (0);
VRT_fail(ctx, "beresp.filters are already fixed, beresp.%s is undefined", s); VRT_fail(ctx,
"beresp.filters are already fixed, beresp.%s is undefined", s);
return (1); return (1);
} }
......
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