checks if this machineid of given locality is excluded.
| 754 | |
| 755 | // checks if this machineid of given locality is excluded. |
| 756 | bool DatabaseConfiguration::isMachineExcluded(const LocalityData& locality) const { |
| 757 | if (locality.machineId().present()) { |
| 758 | return get(encodeExcludedLocalityKey(LocalityData::ExcludeLocalityKeyMachineIdPrefix.toString() + |
| 759 | locality.machineId().get().toString())) |
| 760 | .present() || |
| 761 | get(encodeFailedLocalityKey(LocalityData::ExcludeLocalityKeyMachineIdPrefix.toString() + |
| 762 | locality.machineId().get().toString())) |
| 763 | .present(); |
| 764 | } |
| 765 | |
| 766 | return false; |
| 767 | } |
| 768 | |
| 769 | // Gets the list of already excluded localities (with failed option) |
| 770 | std::set<std::string> DatabaseConfiguration::getExcludedLocalities() const { |
no test coverage detected