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

Method missing

src/log/replica.cpp:245–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244
245bool ReplicaProcess::missing(uint64_t position)
246{
247 if (position < begin) {
248 return false; // Truncated positions are treated as learned.
249 } else if (position > end) {
250 return true;
251 } else {
252 return unlearned.contains(position) || holes.contains(position);
253 }
254}
255
256
257// TODO(jieyu): Allow this method to take an Interval.

Callers 3

getMissingPositionsMethod · 0.80
checkLearnPhaseMethod · 0.80
checkMethod · 0.80

Calls 3

openFunction · 0.50
dispatchFunction · 0.50
containsMethod · 0.45

Tested by

no test coverage detected