mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-26 02:55:13 +08:00
hashset.hpp
This commit is contained in:
parent
fb2d2815dc
commit
a03c1f744c
@ -74,20 +74,6 @@ public:
|
||||
itr = u64_set_get_or_insert(&_u64_set,hashval);
|
||||
|
||||
return (size != u64_set_size(&_u64_set));
|
||||
|
||||
int rv;
|
||||
uint64_t h;
|
||||
khint_t key;
|
||||
|
||||
h = wyhash(str_,len_,0x7472617065786974,_wyp);
|
||||
|
||||
key = kh_put(hashset,_set,h,&rv);
|
||||
if(rv == 0)
|
||||
return 0;
|
||||
|
||||
kh_key(_set,key) = h;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
inline
|
||||
|
Loading…
x
Reference in New Issue
Block a user