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

Function foreachvalue

src/master/master.cpp:1222–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220 CHECK(inverseOffers.empty());
1221
1222 foreachvalue (Future<Option<string>> future, authenticating) {
1223 // NOTE: This is necessary during tests because a copy of
1224 // this future is used to setup authentication timeout. If a
1225 // test doesn't discard this future, authentication timeout might
1226 // fire in a different test and any associated callbacks
1227 // (e.g., '_authenticate()') would be called. This is because the
1228 // master pid doesn't change across the tests.
1229 // TODO(vinod): This seems to be a bug in libprocess or the
1230 // testing infrastructure.
1231 future.discard();
1232 }
1233
1234 foreachvalue (Role* role, roles) {
1235 delete role;

Callers 15

finalizeMethod · 0.70
foreachkeyFunction · 0.70
exitedMethod · 0.70
sendSlaveLostMethod · 0.70
sendFrameworkUpdatesMethod · 0.70
_subscribeMethod · 0.70
knownRolesMethod · 0.70
offeredMethod · 0.70
allocatedMethod · 0.70
reservedMethod · 0.70
consumedQuotaMethod · 0.70
_reregisterSlaveMethod · 0.70

Calls 15

getResourceProviderIdFunction · 0.85
createOperationStatusFunction · 0.85
NoneClass · 0.85
SomeFunction · 0.85
copyFunction · 0.85
insertMethod · 0.80
infoMethod · 0.80
MergeFromMethod · 0.80
typeMethod · 0.80
atMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected