MCPcopy Create free account
hub / github.com/apache/mesos / finished

Method finished

src/log/catchup.cpp:434–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 void finished(const Future<Nothing>& future)
435 {
436 if (future.isDiscarded()) {
437 promise.discard();
438 terminate(self());
439 } else if (future.isFailed()) {
440 promise.fail(future.failure());
441 terminate(self());
442 } else {
443 promise.set(end);
444 terminate(self());
445 }
446 }
447
448 const size_t quorum;
449 Shared<Replica> replica;

Callers

nothing calls this directly

Calls 7

isDiscardedMethod · 0.80
isFailedMethod · 0.80
failureMethod · 0.80
terminateFunction · 0.50
discardMethod · 0.45
failMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected