mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-29 03:48:23 +08:00
policy_cache.hpp
This commit is contained in:
parent
e8db93504b
commit
0834b17e69
|
@ -54,15 +54,16 @@ public:
|
|||
std::string const &val_)
|
||||
{
|
||||
uint64_t hash;
|
||||
STRPOOL_U64 str;
|
||||
const char *ptr;
|
||||
STRPOOL_U64 token;
|
||||
|
||||
fmt::print("insert {}={}\n",
|
||||
key_,
|
||||
val_);
|
||||
|
||||
hash = wyhash(key_.c_str(),key_.size(),0xdeadbeef,_wyp);
|
||||
val =
|
||||
token = strpool_inject(&_strpool,val_.c_str(),val_.size());
|
||||
ptr
|
||||
_cache.insert_or_assign(hash,val_);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user