merge
This commit is contained in:
commit
54dd92bebc
12 changed files with 50 additions and 48 deletions
|
|
@ -198,7 +198,6 @@ int
|
|||
inbloomfilter(Bloom *b, u8int *score)
|
||||
{
|
||||
int r;
|
||||
uint ms;
|
||||
|
||||
if(b == nil || b->data == nil)
|
||||
return 1;
|
||||
|
|
@ -206,12 +205,10 @@ inbloomfilter(Bloom *b, u8int *score)
|
|||
if(ignorebloom)
|
||||
return 1;
|
||||
|
||||
ms = msec();
|
||||
rlock(&b->lk);
|
||||
r = _inbloomfilter(b, score);
|
||||
runlock(&b->lk);
|
||||
ms = ms - msec();
|
||||
addstat2(StatBloomLookup, 1, StatBloomLookupTime, ms);
|
||||
addstat(StatBloomLookup, 1);
|
||||
if(r)
|
||||
addstat(StatBloomMiss, 1);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue