MCPcopy Create free account
hub / github.com/apple/foundationdb / configDBTypeFromString

Function configDBTypeFromString

fdbclient/ConfigKnobs.cpp:119–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119ConfigDBType 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
132std::string configDBTypeToString(ConfigDBType configDBType) {
133 switch (configDBType) {

Callers 2

operator()Method · 0.85
loadIniFileMethod · 0.85

Calls 1

TraceEventClass · 0.85

Tested by

no test coverage detected