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

Function foreach

src/master/maintenance.cpp:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 // Put the machines in the existing schedule into a set.
50 hashset<MachineID> existing;
51 foreach (const maintenance::Schedule& agenda, registry->schedules()) {
52 foreach (const maintenance::Window& window, agenda.windows()) {
53 foreach (const MachineID& id, window.machine_ids()) {
54 existing.insert(id);
55 }
56 }
57 }
58
59 // Put the machines in the updated schedule into a set.
60 // Keep the relevant unavailability to help update existing machines.

Callers

nothing calls this directly

Calls 11

unavailabilityFunction · 0.85
machineFunction · 0.85
protobufFunction · 0.85
insertMethod · 0.80
CopyFromMethod · 0.80
errorMethod · 0.65
ErrorFunction · 0.50
stringifyFunction · 0.50
containsMethod · 0.45
sizeMethod · 0.45
isErrorMethod · 0.45

Tested by

no test coverage detected