| 903 | const KeyRef failedLocalityPrefix = failedLocalityKeys.begin; |
| 904 | const KeyRef failedLocalityVersionKey = LiteralStringRef("\xff/conf/failed_locality"); |
| 905 | std::string decodeFailedLocalityKey(KeyRef const& key) { |
| 906 | ASSERT(key.startsWith(failedLocalityPrefix)); |
| 907 | return key.removePrefix(failedLocalityPrefix).toString(); |
| 908 | } |
| 909 | std::string encodeFailedLocalityKey(std::string const& locality) { |
| 910 | return failedLocalityPrefix.toString() + locality; |
| 911 | } |
no test coverage detected