| 874 | const KeyRef excludedLocalityPrefix = excludedLocalityKeys.begin; |
| 875 | const KeyRef excludedLocalityVersionKey = LiteralStringRef("\xff/conf/excluded_locality"); |
| 876 | std::string decodeExcludedLocalityKey(KeyRef const& key) { |
| 877 | ASSERT(key.startsWith(excludedLocalityPrefix)); |
| 878 | return key.removePrefix(excludedLocalityPrefix).toString(); |
| 879 | } |
| 880 | std::string encodeExcludedLocalityKey(std::string const& locality) { |
| 881 | return excludedLocalityPrefix.toString() + locality; |
| 882 | } |
no test coverage detected