Commit 353073cf authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make VSC->hcb_nolock a worker local counter for consistency, locking

it would seriously miss the point.

Spotted by:	scoof
parent 5961b65f
...@@ -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);
......
...@@ -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",
"" ""
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment