| 117 | } |
| 118 | |
| 119 | ConfigDBType configDBTypeFromString(std::string const& str) { |
| 120 | if (str == "disabled") { |
| 121 | return ConfigDBType::DISABLED; |
| 122 | } else if (str == "simple") { |
| 123 | return ConfigDBType::SIMPLE; |
| 124 | } else if (str == "paxos") { |
| 125 | return ConfigDBType::PAXOS; |
| 126 | } else { |
| 127 | TraceEvent(SevWarnAlways, "InvalidConfigDBString"); |
| 128 | return ConfigDBType::DISABLED; |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | std::string configDBTypeToString(ConfigDBType configDBType) { |
| 133 | switch (configDBType) { |
no test coverage detected