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

Function complete

fdbserver/DataDistributionQueue.actor.cpp:503–509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503void complete(RelocateData const& relocation, std::map<UID, Busyness>& busymap, std::map<UID, Busyness>& destBusymap) {
504 ASSERT(relocation.workFactor > 0);
505 for (int i = 0; i < relocation.src.size(); i++)
506 busymap[relocation.src[i]].removeWork(relocation.priority, relocation.workFactor);
507
508 completeDest(relocation, destBusymap);
509}
510
511// Cancells in-flight data moves intersecting with range.
512ACTOR Future<Void> cancelDataMove(struct DDQueue* self, KeyRange range, const DDEnabledState* ddEnabledState);

Callers 2

~CounterHolderMethod · 0.85

Calls 3

completeDestFunction · 0.85
removeWorkMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected