Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
a2e72e8f
Commit
a2e72e8f
authored
Dec 26, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vsc for requested and needed sizes for mempool.
Fix sess mempool names
parent
b099f908
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
cache_mempool.c
bin/varnishd/cache/cache_mempool.c
+2
-0
cache_session.c
bin/varnishd/cache/cache_session.c
+1
-0
No files found.
bin/varnishd/cache/cache_mempool.c
View file @
a2e72e8f
...
...
@@ -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
);
}
...
...
bin/varnishd/cache/cache_session.c
View file @
a2e72e8f
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment