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

Method parseKnobValue

fdbclient/IKnobCollection.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37KnobValue IKnobCollection::parseKnobValue(std::string const& knobName, std::string const& knobValue) const {
38 auto result = tryParseKnobValue(knobName, knobValue);
39 if (!result.present()) {
40 throw invalid_option();
41 }
42 return result.get();
43}
44
45void IKnobCollection::setKnob(std::string const& knobName, KnobValueRef const& knobValue) {
46 if (!trySetKnob(knobName, knobValue)) {

Callers 5

setupKnobsMethod · 0.45
tryParseKnobValueMethod · 0.45
tryParseKnobValueMethod · 0.45
tryParseKnobValueMethod · 0.45

Calls 2

getMethod · 0.65
presentMethod · 0.45

Tested by 2

tryParseKnobValueMethod · 0.36