Commit cb6ef119 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Remove the opportunistic COOLING check

Otherwise at this point nothing is undone. And backend creation while a
VCL is stuck in the COOLING state should be unlikely enough that we can
assume the happy path by default.

Refs #3176
parent 8c90b585
......@@ -159,10 +159,6 @@ VRT_AddDirector(VRT_CTX, const struct vdi_methods *m, void *priv,
vcl = ctx->vcl;
CHECK_OBJ_NOTNULL(vcl, VCL_MAGIC);
// opportunistic, re-checked again under lock
if (vcl->temp == VCL_TEMP_COOLING && !DO_DEBUG(DBG_VTC_MODE))
return (NULL);
ALLOC_OBJ(vdir, VCLDIR_MAGIC);
AN(vdir);
ALLOC_OBJ(vdir->dir, DIRECTOR_MAGIC);
......
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