| 853 | } |
| 854 | |
| 855 | void Config::ClearMaster() { |
| 856 | master_host.clear(); |
| 857 | master_port = 0; |
| 858 | auto iter = fields_.find("slaveof"); |
| 859 | if (iter != fields_.end()) { |
| 860 | auto s = iter->second->Set("no one"); |
| 861 | if (!s.IsOK()) { |
| 862 | ERROR("Failed to clear the value of 'slaveof' setting: {}", s.Msg()); |
| 863 | } |
| 864 | } |
| 865 | } |
| 866 | |
| 867 | Status Config::parseConfigFromPair(const std::pair<std::string, std::string> &input, int line_number) { |
| 868 | std::string field_key = util::ToLower(input.first); |
no test coverage detected