MCPcopy Create free account
hub / github.com/apple/foundationdb / addNew

Method addNew

fdbserver/VersionedBTree.actor.cpp:1891–1895  ·  view source on GitHub ↗

Add a new item to the back of the eviction order

Source from the content-addressed store, hash-verified

1889
1890 // Add a new item to the back of the eviction order
1891 void addNew(Entry& e) {
1892 sizeUsed += e.size;
1893 evictionOrder.push_back(e);
1894 e.ownedByEvictor = true;
1895 }
1896
1897 // Claim ownership of an entry, removing its size from the current size and removing it
1898 // from the eviction order if it exists there

Callers 1

ObjectCacheClass · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected