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

Method moveIn

fdbserver/VersionedBTree.actor.cpp:1881–1888  ·  view source on GitHub ↗

Move entire contents of an external eviction order containing entries whose size is part of this Evictor to the front of its eviction order.

Source from the content-addressed store, hash-verified

1879 // Move entire contents of an external eviction order containing entries whose size is part of
1880 // this Evictor to the front of its eviction order.
1881 void moveIn(EvictionOrderT& otherOrder) {
1882 for (auto& e : otherOrder) {
1883 ASSERT(!e.ownedByEvictor);
1884 e.ownedByEvictor = true;
1885 --movedOutCount;
1886 }
1887 evictionOrder.splice(evictionOrder.begin(), otherOrder);
1888 }
1889
1890 // Add a new item to the back of the eviction order
1891 void addNew(Entry& e) {

Callers 1

Calls 1

beginMethod · 0.45

Tested by

no test coverage detected