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

Method catchup

src/log/catchup.cpp:223–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void catchup()
224 {
225 if (current >= positions.upper()) {
226 // Stop the process if there is nothing left to catch-up. This
227 // also handles the case where the input interval is empty.
228 promise.set(Nothing());
229 terminate(self());
230 return;
231 }
232
233 // Store the future so that we can discard it if the user wants to
234 // cancel the catch-up operation.
235 catching = log::catchup(quorum, replica, network, proposal, current)
236 .onDiscarded(defer(self(), &Self::discarded))
237 .onFailed(defer(self(), &Self::failed))
238 .onReady(defer(self(), &Self::succeeded));
239
240 Clock::timer(timeout, lambda::bind(&Self::timedout, catching));
241 }
242
243
244 void discarded()

Callers

nothing calls this directly

Calls 7

NothingClass · 0.85
catchupFunction · 0.85
deferFunction · 0.85
terminateFunction · 0.50
bindFunction · 0.50
upperMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected