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

Method _start

src/log/log.cpp:542–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540
541
542Future<Option<Log::Position>> LogWriterProcess::_start()
543{
544 // We delete the existing coordinator (if exists) and create a new
545 // coordinator each time 'start' is called.
546 // TODO(benh): We shouldn't need to delete the coordinator everytime.
547 delete coordinator;
548 error = None();
549
550 CHECK_READY(recovering);
551
552 coordinator = new Coordinator(quorum, recovering.get(), network);
553
554 LOG(INFO) << "Attempting to start the writer";
555
556 return coordinator->elect()
557 .then(defer(self(), &Self::__start, lambda::_1))
558 .onFailed(defer(self(), &Self::failed, "Failed to start", lambda::_1));
559}
560
561
562Option<Log::Position> LogWriterProcess::__start(

Callers

nothing calls this directly

Calls 5

NoneClass · 0.85
deferFunction · 0.85
electMethod · 0.80
getMethod · 0.45
thenMethod · 0.45

Tested by

no test coverage detected