Commit 178f092f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Move on to the worker process side of persistent storage



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3811 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7781c071
......@@ -60,6 +60,7 @@ STV_alloc(struct sess *sp, size_t size)
stv_next = stv;
/* try to allocate from it */
AN(stv->alloc);
st = stv->alloc(stv, size);
if (st != NULL)
break;
......
......@@ -28,6 +28,9 @@
* $Id$
*
* Persistent storage method
*
* XXX: Before we start the client or maybe after it stops, we should give the
* XXX: stevedores a chance to examine their storage for consistency.
*/
#include "config.h"
......@@ -266,7 +269,11 @@ smp_init(struct stevedore *parent, int ac, char * const *av)
smp_newsilo(sc);
fprintf(stderr, "Silo: %d\n", smp_valid_silo(sc));
AZ(smp_valid_silo(sc));
exit (2);
parent->priv = sc;
/* XXX: only for sendfile I guess... */
mgt_child_inherit(sc->fd, "storage_persistent");
}
/*--------------------------------------------------------------------*/
......
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