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
6b9fa157
Commit
6b9fa157
authored
Aug 15, 2011
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Aug 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We always allocate an object entirely inside one stevedore now.
parent
1142de71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
stevedore.c
bin/varnishd/stevedore.c
+5
-10
No files found.
bin/varnishd/stevedore.c
View file @
6b9fa157
...
...
@@ -151,20 +151,15 @@ static struct storage *
stv_alloc
(
const
struct
sess
*
sp
,
size_t
size
)
{
struct
storage
*
st
;
struct
stevedore
*
stv
=
NULL
;
struct
stevedore
*
stv
;
unsigned
fail
=
0
;
/*
* Always
try
the stevedore which allocated the object in order to
*
not needlessly split an object across multiple stevedores
.
* Always
use
the stevedore which allocated the object in order to
*
keep an object inside the same stevedore
.
*/
if
(
sp
->
obj
!=
NULL
)
{
CHECK_OBJ_NOTNULL
(
sp
->
obj
,
OBJECT_MAGIC
);
stv
=
sp
->
obj
->
objstore
->
stevedore
;
}
else
{
INCOMPL
();
stv
=
stv_transient
;
}
CHECK_OBJ_NOTNULL
(
sp
->
obj
,
OBJECT_MAGIC
);
stv
=
sp
->
obj
->
objstore
->
stevedore
;
CHECK_OBJ_NOTNULL
(
stv
,
STEVEDORE_MAGIC
);
if
(
size
>
(
size_t
)(
params
->
fetch_maxchunksize
)
<<
10
)
...
...
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