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
3c338fcb
Commit
3c338fcb
authored
Aug 05, 2019
by
Poul-Henning Kamp
Committed by
Martin Blix Grydeland
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly count vsm segments and rebuild _.index when retired
segments dominate the _.index file.
parent
d3be9d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
common_vsmw.c
bin/varnishd/common/common_vsmw.c
+1
-2
No files found.
bin/varnishd/common/common_vsmw.c
View file @
3c338fcb
...
...
@@ -206,7 +206,6 @@ vsmw_append_record(struct vsmw *vsmw, struct vsmwseg *seg, char act)
s
=
write
(
fd
,
VSB_data
(
vsmw
->
vsb
),
VSB_len
(
vsmw
->
vsb
));
assert
(
s
==
VSB_len
(
vsmw
->
vsb
));
// XXX handle ENOSPC? #2764
AZ
(
close
(
fd
));
vsmw
->
nsegs
++
;
}
/*--------------------------------------------------------------------*/
...
...
@@ -238,7 +237,7 @@ vsmw_delseg(struct vsmw *vsmw, struct vsmwseg *seg, int fixidx)
VTAILQ_REMOVE
(
&
vsmw
->
segs
,
seg
,
list
);
vsmw
->
nsegs
--
;
if
(
vsmw
->
nsubs
<
vsmw
->
nsegs
||
!
fixidx
)
{
if
(
vsmw
->
nsubs
*
2
<
vsmw
->
nsegs
||
!
fixidx
)
{
vsmw_append_record
(
vsmw
,
seg
,
'-'
);
vsmw
->
nsubs
++
;
}
else
{
...
...
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