Commit 2b5e8364 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Open the transient (malloc) stevedore and let it be used for

non-cacheable objects, rather than direct mallocs.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@5559 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4db9d233
......@@ -223,9 +223,8 @@ stv_default_allocobj(struct stevedore *stv, struct sess *sp, unsigned ltot,
struct object *o;
struct storage *st;
(void)stv; /* XXX */
CHECK_OBJ_NOTNULL(soc, STV_OBJ_SECRETES_MAGIC);
st = stv_alloc(sp, ltot, sp->objcore);
st = stv->alloc(stv, ltot, sp->objcore);
XXXAN(st);
xxxassert(st->space >= ltot);
ltot = st->len = st->space;
......@@ -354,6 +353,9 @@ STV_open(void)
if (stv->open != NULL)
stv->open(stv);
}
stv = stv_transient;
if (stv->open != NULL)
stv->open(stv);
}
void
......
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