shard director: retire canon_point

The first hashcircle point of a backend was saves as canon_point, but
never used for anything but JSON backend.list output.

I assume no-one needs it. Famous Last Words (tm).
parent 6294c0cb
......@@ -273,9 +273,6 @@ shardcfg_hashcircle(struct sharddir *shardd, VCL_INT replicas)
VRT_HashStrands32(ss);
shardd->hashcircle[i * replicas + j].host = i;
}
/* not used in current interface */
shardd->backend[i].canon_point =
shardd->hashcircle[i * replicas].point;
}
qsort( (void *) shardd->hashcircle, shardd->n_backend * replicas,
sizeof (struct shard_circlepoint), (compar) circlepoint_compare);
......@@ -313,7 +310,6 @@ shardcfg_backend_copyin(struct shard_backend *dst,
dst->backend = src->backend;
dst->ident = src->ident ? strdup(src->ident) : NULL;
dst->rampup = src->rampup;
dst->canon_point = 0xffffffff;
}
static int
......
......@@ -43,7 +43,6 @@ struct shard_backend {
void *freeptr;
};
VCL_DURATION rampup;
uint32_t canon_point;
};
struct vmod_directors_shard_param;
......
......@@ -763,8 +763,6 @@ vmod_shard_list(VRT_CTX, VCL_BACKEND dir, struct vsb *vsb, int pflag, int jflag)
sbe->ident ? sbe->ident : be->vcl_name);
VSB_printf(vsb, "\"health\": \"%s\",\n",
h ? "healthy" : "sick");
VSB_printf(vsb, "\"canon_point\": %u,\n",
sbe->canon_point);
VSB_printf(vsb, "\"rampup\": %f,\n", rampup_p);
VSB_printf(vsb, "\"rampup_remaining\": %.3f\n",
rampup_d);
......
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