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

Method compatible

src/slave/slave.cpp:7671–7687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7669
7670
7671Try<Nothing> Slave::compatible(
7672 const SlaveInfo& previous,
7673 const SlaveInfo& current) const
7674{
7675 // TODO(vinod): Also check for version compatibility.
7676
7677 if (flags.reconfiguration_policy == "equal") {
7678 return compatibility::equal(previous, current);
7679 }
7680
7681 if (flags.reconfiguration_policy == "additive") {
7682 return compatibility::additive(previous, current);
7683 }
7684
7685 // Should have been validated during startup.
7686 UNREACHABLE();
7687}
7688
7689
7690// TODO(gilbert): Consider to read the Image GC config dynamically.

Callers 1

verifyModuleMethod · 0.80

Calls 2

equalFunction · 0.85
additiveFunction · 0.85

Tested by

no test coverage detected