MCPcopy Create free account
hub / github.com/ceph/ceph / lru_remove

Method lru_remove

src/common/shared_cache.hpp:63–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61 }
62
63 void lru_remove(const K& key) {
64 auto i = contents.find(key);
65 if (i == contents.end())
66 return;
67 lru.erase(i->second);
68 --size;
69 contents.erase(i);
70 }
71
72 void lru_add(const K& key, const VPtr& val, std::list<VPtr> *to_release) {
73 auto i = contents.find(key);

Callers 1

unlinkMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected