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

Function foreachpair

src/master/master.cpp:1812–1817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1810 }
1811 } else if (!weights.empty()) {
1812 foreachpair (const string& role, double weight, weights) {
1813 WeightInfo weightInfo;
1814 weightInfo.set_role(role);
1815 weightInfo.set_weight(weight);
1816 weightInfos.push_back(weightInfo);
1817 }
1818 registrar->apply(Owned<RegistryOperation>(
1819 new weights::UpdateWeights(weightInfos)));
1820 }

Callers

nothing calls this directly

Calls 15

NanosecondsClass · 0.85
isTerminalStateFunction · 0.85
NoneClass · 0.85
convertResourceFormatFunction · 0.85
insertMethod · 0.80
CopyFromMethod · 0.80
atMethod · 0.80
MergeFromMethod · 0.80
foreachFunction · 0.70
sendFunction · 0.50
stringifyFunction · 0.50

Tested by

no test coverage detected