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

Method recover

src/log/recover.cpp:466–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464 }
465
466 Future<bool> recover(const Metadata::Status& status)
467 {
468 LOG(INFO) << "Replica is in " << status << " status";
469
470 if (status == Metadata::VOTING) {
471 // No need to do recovery.
472 return true;
473 } else {
474 return runRecoverProtocol(quorum, network, status, autoInitialize)
475 .then(defer(self(), &Self::_recover, lambda::_1));
476 }
477 }
478
479 Future<bool> _recover(const Option<RecoverResponse>& result)
480 {

Callers

nothing calls this directly

Calls 3

runRecoverProtocolFunction · 0.85
deferFunction · 0.85
thenMethod · 0.45

Tested by

no test coverage detected