Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
94c870bf
Commit
94c870bf
authored
Aug 15, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We always allocate an object entirely inside one stevedore now.
parent
cd55687a
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 @
94c870bf
...
...
@@ -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