| 7669 | |
| 7670 | |
| 7671 | Try<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. |
no test coverage detected