Commit 7daec4bf authored by Nils Goroll's avatar Nils Goroll

reorder code

parent 72299001
......@@ -374,6 +374,18 @@ vmod_cluster_is_denied(VRT_CTX,
return (cluster_blacklisted(pr, b));
}
VCL_BACKEND
vmod_cluster_get_cluster(VRT_CTX, struct vmod_cluster_cluster *vc)
{
const struct vmod_cluster_cluster_param *pr;
CHECK_OBJ_NOTNULL(vc, VMOD_CLUSTER_CLUSTER_MAGIC);
pr = cluster_task_param_r(ctx, vc);
return (pr->cluster);
}
VCL_VOID
vmod_cluster_set_real(VRT_CTX,
struct vmod_cluster_cluster *vc, VCL_BACKEND b)
......@@ -393,18 +405,6 @@ vmod_cluster_set_real(VRT_CTX,
pl->real = b;
}
VCL_BACKEND
vmod_cluster_get_cluster(VRT_CTX, struct vmod_cluster_cluster *vc)
{
const struct vmod_cluster_cluster_param *pr;
CHECK_OBJ_NOTNULL(vc, VMOD_CLUSTER_CLUSTER_MAGIC);
pr = cluster_task_param_r(ctx, vc);
return (pr->cluster);
}
VCL_BACKEND
vmod_cluster_get_real(VRT_CTX, struct vmod_cluster_cluster *vc)
{
......
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