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

Function learn

src/log/consensus.cpp:850–860  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848
849
850Future<Nothing> learn(const Shared<Network>& network, const Action& action)
851{
852 LearnedMessage message;
853 message.mutable_action()->CopyFrom(action);
854
855 if (!action.has_learned() || !action.learned()) {
856 message.mutable_action()->set_learned(true);
857 }
858
859 return network->broadcast(message);
860}
861
862
863Future<Action> fill(

Callers 2

runLearnPhaseMethod · 0.85
runLearnPhaseMethod · 0.85

Calls 3

CopyFromMethod · 0.80
learnedMethod · 0.80
broadcastMethod · 0.45

Tested by

no test coverage detected