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

Function write

src/log/consensus.cpp:831–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

829
830
831Future<WriteResponse> write(
832 size_t quorum,
833 const Shared<Network>& network,
834 uint64_t proposal,
835 const Action& action)
836{
837 WriteProcess* process =
838 new WriteProcess(
839 quorum,
840 network,
841 proposal,
842 action);
843
844 Future<WriteResponse> future = process->future();
845 spawn(process, true);
846 return future;
847}
848
849
850Future<Nothing> learn(const Shared<Network>& network, const Action& action)

Callers 15

runWritePhaseMethod · 0.70
appendMethod · 0.70
truncateMethod · 0.70
runWritePhaseMethod · 0.70
__fetchMethod · 0.50
saveMethod · 0.50
setMethod · 0.50
handleMethod · 0.50
CreateMasterFlagsMethod · 0.50
CreateSlaveFlagsMethod · 0.50
TEST_FFunction · 0.50
setupCommandFileAssetMethod · 0.50

Calls 2

spawnFunction · 0.50
futureMethod · 0.45

Tested by 15

CreateMasterFlagsMethod · 0.40
CreateSlaveFlagsMethod · 0.40
TEST_FFunction · 0.40
setupCommandFileAssetMethod · 0.40
setupArchiveAssetMethod · 0.40
TEST_FFunction · 0.40
foreachFunction · 0.40
TEST_PFunction · 0.40
TEST_PFunction · 0.40
TEST_FFunction · 0.40
executeFunction · 0.40