Browse Source

policy_cache.hpp

getattr-cache
Antonio SJ Musumeci 8 months ago
parent
commit
b068ae4dc4
  1. 4
      src/policy_cache.hpp

4
src/policy_cache.hpp

@ -67,9 +67,7 @@ public:
STRPOOL_U64 token; STRPOOL_U64 token;
hash = wyhash(key_,keylen_,0xdeadbeef,_wyp); hash = wyhash(key_,keylen_,0xdeadbeef,_wyp);
token = strpool_inject(&_strpool,val_.c_str(),val_.size());
ptr = strpool_cstr(&_strpool,token);
_cache.insert_or_assign(hash,ptr);
_cache.insert_or_assign(hash,val_);
fmt::print("insert {}={} token={} ptr={}\n", fmt::print("insert {}={} token={} ptr={}\n",
key_, key_,

Loading…
Cancel
Save