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
3b389292
Commit
3b389292
authored
Feb 18, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename variable dup -> duplicate to unbreak build (warning on global
shadowing).
parent
f6c4379a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cache_ban.c
bin/varnishd/cache/cache_ban.c
+4
-4
No files found.
bin/varnishd/cache/cache_ban.c
View file @
3b389292
...
...
@@ -634,7 +634,7 @@ static void
ban_reload
(
const
uint8_t
*
ban
,
unsigned
len
)
{
struct
ban
*
b
,
*
b2
;
int
dup
=
0
;
int
dup
licate
=
0
;
double
t0
,
t1
,
t2
=
9e99
;
ASSERT_CLI
();
...
...
@@ -652,7 +652,7 @@ ban_reload(const uint8_t *ban, unsigned len)
if
(
t1
<
t0
)
break
;
if
(
ban_equal
(
b
->
spec
,
ban
))
dup
=
1
;
dup
licate
=
1
;
}
VSC_C_main
->
bans
++
;
...
...
@@ -667,9 +667,9 @@ ban_reload(const uint8_t *ban, unsigned len)
VSC_C_main
->
bans_req
++
;
b2
->
flags
|=
BAN_F_REQ
;
}
if
(
dup
)
if
(
dup
licate
)
VSC_C_main
->
bans_dups
++
;
if
(
dup
||
(
ban
[
BANS_FLAGS
]
&
BANS_FLAG_GONE
))
if
(
dup
licate
||
(
ban
[
BANS_FLAGS
]
&
BANS_FLAG_GONE
))
ban_mark_gone
(
b2
);
if
(
b
==
NULL
)
VTAILQ_INSERT_TAIL
(
&
ban_head
,
b2
,
list
);
...
...
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