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
353073cf
Commit
353073cf
authored
Apr 23, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make VSC->hcb_nolock a worker local counter for consistency, locking
it would seriously miss the point. Spotted by: scoof
parent
5961b65f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
hash_critbit.c
bin/varnishd/hash/hash_critbit.c
+1
-1
vsc_f_main.h
include/tbl/vsc_f_main.h
+1
-1
No files found.
bin/varnishd/hash/hash_critbit.c
View file @
353073cf
...
@@ -432,7 +432,7 @@ hcb_lookup(struct worker *wrk, const void *digest, struct objhead **noh)
...
@@ -432,7 +432,7 @@ hcb_lookup(struct worker *wrk, const void *digest, struct objhead **noh)
/* First try in read-only mode without holding a lock */
/* First try in read-only mode without holding a lock */
VSC_C_main
->
hcb_nolock
++
;
wrk
->
stats
.
hcb_nolock
++
;
oh
=
hcb_insert
(
wrk
,
&
hcb_root
,
digest
,
NULL
);
oh
=
hcb_insert
(
wrk
,
&
hcb_root
,
digest
,
NULL
);
if
(
oh
!=
NULL
)
{
if
(
oh
!=
NULL
)
{
Lck_Lock
(
&
oh
->
mtx
);
Lck_Lock
(
&
oh
->
mtx
);
...
...
include/tbl/vsc_f_main.h
View file @
353073cf
...
@@ -454,7 +454,7 @@ VSC_F(bans_dups, uint64_t, 0, 'c',
...
@@ -454,7 +454,7 @@ VSC_F(bans_dups, uint64_t, 0, 'c',
/**********************************************************************/
/**********************************************************************/
VSC_F
(
hcb_nolock
,
uint64_t
,
0
,
'a'
,
VSC_F
(
hcb_nolock
,
uint64_t
,
1
,
'a'
,
"HCB Lookups without lock"
,
"HCB Lookups without lock"
,
""
""
)
)
...
...
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