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
e60cfbcf
Commit
e60cfbcf
authored
Oct 10, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of FlexeLint nit-pickery
parent
68644d8b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
cache_expire.c
bin/varnishd/cache/cache_expire.c
+2
-0
storage_persistent.c
bin/varnishd/storage/storage_persistent.c
+2
-2
storage_persistent_subr.c
bin/varnishd/storage/storage_persistent_subr.c
+1
-2
No files found.
bin/varnishd/cache/cache_expire.c
View file @
e60cfbcf
...
...
@@ -477,6 +477,8 @@ EXP_NukeLRU(struct worker *wrk, struct vsl_log *vsl, struct lru *lru)
CHECK_OBJ_NOTNULL
(
wrk
,
WORKER_MAGIC
);
CHECK_OBJ_NOTNULL
(
lru
,
LRU_MAGIC
);
memset
(
oc_array
,
0
,
sizeof
oc_array
);
t
=
VTIM_real
();
Lck_Lock
(
&
lru
->
mtx
);
while
(
!
VTAILQ_EMPTY
(
&
lru
->
lru_head
))
{
...
...
bin/varnishd/storage/storage_persistent.c
View file @
e60cfbcf
...
...
@@ -76,7 +76,7 @@ smp_appendban(struct smp_sc *sc, struct smp_signspace *spc,
(
void
)
sc
;
ptr
=
ptr2
=
SIGNSPACE_FRONT
(
spc
);
assert
(
SIGNSPACE_FREE
(
spc
)
>=
4
+
4
+
len
);
assert
(
SIGNSPACE_FREE
(
spc
)
>=
4
L
+
4
+
len
);
memcpy
(
ptr
,
"BAN"
,
4
);
ptr
+=
4
;
...
...
@@ -412,7 +412,7 @@ smp_close(const struct stevedore *st)
CAST_OBJ_NOTNULL
(
sc
,
st
->
priv
,
SMP_SC_MAGIC
);
pthread_join
(
sc
->
bgthread
,
&
status
);
AZ
(
pthread_join
(
sc
->
bgthread
,
&
status
)
);
AZ
(
status
);
}
...
...
bin/varnishd/storage/storage_persistent_subr.c
View file @
e60cfbcf
...
...
@@ -269,8 +269,7 @@ smp_new_signspace(const struct smp_sc *sc, struct smp_signspace *spc,
void
smp_msync
(
void
*
addr
,
size_t
length
)
{
uintptr_t
start
,
end
;
int
pagesize
;
uintptr_t
start
,
end
,
pagesize
;
pagesize
=
getpagesize
();
assert
(
pagesize
>
0
&&
PWR2
(
pagesize
));
...
...
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