Commit 61ebd5b9 authored by Nils Goroll's avatar Nils Goroll

non-ESI T_NEXUS buffering can also use nodes on ws

parent 0b5d094d
......@@ -146,6 +146,9 @@ node_fill_nodestock(struct ws *ws, struct node_head *head)
unsigned spc, n;
void *p;
if (VSTAILQ_FIRST(head) != NULL)
return;
WS_Assert(ws);
AN(head);
......
......@@ -472,8 +472,14 @@ vped_include(struct req *preq, const char *src, const char *host,
static int v_matchproto_(vdp_init_f)
pesi_buf_init(struct req *req, void **priv)
{
(void)req;
(void)priv;
struct pesi *pesi;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
CAST_OBJ_NOTNULL(pesi, *priv, PESI_MAGIC);
WS_Assert_Allocated(req->ws, pesi, sizeof *pesi);
node_fill_nodestock(req->ws, &pesi->nodestock);
return (0);
}
......
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