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

Function unpackValueTuple

fdbserver/storageserver.actor.cpp:4029–4040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4027}
4028
4029void unpackValueTuple(Tuple** referenceTuple, Optional<Tuple>& valueTuple, KeyValueRef* keyValue) {
4030 if (!valueTuple.present()) {
4031 // May throw exception if the value is not parsable as a tuple.
4032 try {
4033 valueTuple = Tuple::unpack(keyValue->value);
4034 } catch (Error& e) {
4035 TraceEvent("ValueNotTuple").error(e).detail("Value", keyValue->value.printable());
4036 throw value_not_tuple();
4037 }
4038 }
4039 *referenceTuple = &valueTuple.get();
4040}
4041
4042bool unescapeLiterals(std::string& s, std::string before, std::string after) {
4043 bool escaped = false;

Callers 1

constructMappedKeyFunction · 0.85

Calls 7

unpackFunction · 0.85
TraceEventClass · 0.85
detailMethod · 0.80
getMethod · 0.65
presentMethod · 0.45
errorMethod · 0.45
printableMethod · 0.45

Tested by

no test coverage detected