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

Function foreachpair

src/slave/containerizer/mesos/containerizer.cpp:219–234  ·  view source on GitHub ↗

Replace any deprecated isolator names with their current equivalents.

Source from the content-addressed store, hash-verified

217
218 // Replace any deprecated isolator names with their current equivalents.
219 foreachpair (const string& name,
220 const vector<string>& replacements,
221 deprecations) {
222 if (isolations->contains(name)) {
223 LOG(WARNING)
224 << "The '" << name << "' isolation flag is deprecated, "
225 << "please update your flags to"
226 << " '--isolation=" << strings::join(",", replacements) << "'.";
227
228 isolations->erase(name);
229
230 foreach (const string& isolator, replacements) {
231 isolations->insert(isolator);
232 }
233 }
234 }
235
236 // One and only one filesystem isolator is required. The filesystem
237 // isolator is responsible for preparing the filesystems for

Callers

nothing calls this directly

Calls 10

deferFunction · 0.85
FailureClass · 0.85
insertMethod · 0.80
imageMethod · 0.80
joinFunction · 0.50
stringifyFunction · 0.50
containsMethod · 0.45
eraseMethod · 0.45
isNoneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected