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

Function getOptionalString

fdbserver/workloads/ConsistencyCheck.actor.cpp:2082–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2080
2081 template <class T>
2082 static std::string getOptionalString(Optional<T> opt) {
2083 if (opt.present())
2084 return opt.get().toString();
2085 return "NotSet";
2086 }
2087
2088 ACTOR Future<bool> checkCoordinators(Database cx) {
2089 state Transaction tr(cx);

Callers 1

Calls 3

getMethod · 0.65
presentMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected