mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-29 11:26:44 -05:00
policy_cache.hpp
This commit is contained in:
parent
b034f87338
commit
64926b69f6
1 changed files with 6 additions and 4 deletions
|
|
@ -60,19 +60,21 @@ public:
|
|||
size_t const keylen_,
|
||||
std::string const &val_)
|
||||
{
|
||||
Key key;
|
||||
uint64_t hash;
|
||||
STRPOOL_U64 token;
|
||||
|
||||
key = key_;
|
||||
hash = wyhash(key_,keylen_,0xdeadbeef,_wyp);
|
||||
_cache.insert_or_assign(hash,val_);
|
||||
|
||||
fmt::print("insert {}={} token={} ptr={}\n",
|
||||
fmt::print("insert {}={} token={}\n",
|
||||
key_,
|
||||
val_,
|
||||
token,
|
||||
ptr);
|
||||
token);
|
||||
|
||||
return ptr;
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
Key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue