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
afe89d55
Commit
afe89d55
authored
May 20, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce contention on the wstat_mtx marginally while we figure out
what the real solution is going to be.
parent
010aac8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cache_wrk.c
bin/varnishd/cache/cache_wrk.c
+2
-1
No files found.
bin/varnishd/cache/cache_wrk.c
View file @
afe89d55
...
...
@@ -54,7 +54,6 @@ wrk_sumstat(struct worker *w)
#undef VSC_F
#undef L0
#undef L1
memset
(
&
w
->
stats
,
0
,
sizeof
w
->
stats
);
}
void
...
...
@@ -64,6 +63,7 @@ WRK_SumStat(struct worker *w)
Lck_Lock
(
&
wstat_mtx
);
wrk_sumstat
(
w
);
Lck_Unlock
(
&
wstat_mtx
);
memset
(
&
w
->
stats
,
0
,
sizeof
w
->
stats
);
}
int
...
...
@@ -73,6 +73,7 @@ WRK_TrySumStat(struct worker *w)
return
(
0
);
wrk_sumstat
(
w
);
Lck_Unlock
(
&
wstat_mtx
);
memset
(
&
w
->
stats
,
0
,
sizeof
w
->
stats
);
return
(
1
);
}
...
...
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