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

Method checked

src/log/catchup.cpp:90–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 void checked()
91 {
92 // The future 'checking' can only be discarded in 'finalize'.
93 CHECK(!checking.isDiscarded());
94
95 if (checking.isFailed()) {
96 promise.fail("Failed to get missing positions: " + checking.failure());
97 terminate(self());
98 } else if (!checking.get()) {
99 // The position has been learned.
100 promise.set(proposal);
101 terminate(self());
102 } else {
103 // Still missing, try to fill it.
104 fill();
105 }
106 }
107
108 void fill()
109 {

Callers

nothing calls this directly

Calls 8

fillFunction · 0.85
isDiscardedMethod · 0.80
isFailedMethod · 0.80
failureMethod · 0.80
terminateFunction · 0.50
failMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected