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
4c47a36e
Commit
4c47a36e
authored
Jan 21, 2013
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a bug discovered by inspection:
If we fail to allocate storage, try a smaller chunk, not a larger one.
parent
d175906e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
stevedore.c
bin/varnishd/storage/stevedore.c
+1
-1
r01175.vtc
bin/varnishtest/tests/r01175.vtc
+1
-1
No files found.
bin/varnishd/storage/stevedore.c
View file @
4c47a36e
...
@@ -180,7 +180,7 @@ stv_alloc(struct stevedore *stv, size_t size)
...
@@ -180,7 +180,7 @@ stv_alloc(struct stevedore *stv, size_t size)
if
(
size
<=
cache_param
->
fetch_chunksize
)
if
(
size
<=
cache_param
->
fetch_chunksize
)
break
;
break
;
size
>>
=
1
;
size
<<
=
1
;
}
}
if
(
st
!=
NULL
)
if
(
st
!=
NULL
)
CHECK_OBJ_NOTNULL
(
st
,
STORAGE_MAGIC
);
CHECK_OBJ_NOTNULL
(
st
,
STORAGE_MAGIC
);
...
...
bin/varnishtest/tests/r01175.vtc
View file @
4c47a36e
...
@@ -17,4 +17,4 @@ client c1 {
...
@@ -17,4 +17,4 @@ client c1 {
expect resp.status == 503
expect resp.status == 503
} -run
} -run
varnish v1 -expect SMA.test.c_fail < 5
varnish v1 -expect SMA.test.c_fail < 5
0
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