Commit e66c5eb5 authored by Nils Goroll's avatar Nils Goroll

avoid TRUST_ME in shard director

parent 95ab1c57
......@@ -293,8 +293,8 @@ shardcfg_hashcircle(struct sharddir *shardd, VCL_INT replicas)
static void
shardcfg_backend_free(struct shard_backend *f)
{
if (f->ident)
free (TRUST_ME(f->ident));
if (f->freeptr)
free (f->freeptr);
memset(f, 0, sizeof(*f));
}
......
......@@ -57,7 +57,10 @@ struct shard_circlepoint {
struct shard_backend {
VCL_BACKEND backend;
const char *ident; // XXX COPY IN !
union {
const char *ident;
void *freeptr;
};
VCL_DURATION rampup;
uint32_t canon_point;
};
......
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