Commit a2e72e8f authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add vsc for requested and needed sizes for mempool.

Fix sess mempool names
parent b099f908
......@@ -80,6 +80,8 @@ mpl_alloc(const struct mempool *mpl)
AN(mi);
mi->magic = MEMITEM_MAGIC;
mi->size = tsz;
mpl->vsc->sz_wanted = tsz;
mpl->vsc->sz_needed = tsz + sizeof *mi;
return (mi);
}
......
......@@ -318,6 +318,7 @@ SES_NewPool(struct pool *wp, unsigned pool_no)
bprintf(nb, "req%u", pool_no);
pp->mpl_req = MPL_New(nb, &cache_param->req_pool,
&cache_param->workspace_client);
bprintf(nb, "sess%u", pool_no);
pp->mpl_sess = MPL_New(nb, &cache_param->sess_pool, &ses_size);
return (pp);
}
......
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