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

Method dump

fdbclient/ReadYourWrites.actor.cpp:34–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32public:
33 template <class Iter>
34 static void dump(Iter it) {
35 it.skip(allKeys.begin);
36 Arena arena;
37 while (true) {
38 Optional<StringRef> key = StringRef();
39 if (it.is_kv()) {
40 auto kv = it.kv(arena);
41 if (kv)
42 key = kv->key;
43 }
44 TraceEvent("RYWDump")
45 .detail("Begin", it.beginKey())
46 .detail("End", it.endKey())
47 .detail("Unknown", it.is_unknown_range())
48 .detail("Empty", it.is_empty_range())
49 .detail("KV", it.is_kv())
50 .detail("Key", key.get());
51 if (it.endKey() == allKeys.end)
52 break;
53 ++it;
54 }
55 }
56
57 struct GetValueReq {
58 explicit GetValueReq(Key key) : key(key) {}

Callers

nothing calls this directly

Calls 11

TraceEventClass · 0.85
detailMethod · 0.80
getMethod · 0.65
StringRefClass · 0.50
skipMethod · 0.45
is_kvMethod · 0.45
kvMethod · 0.45
beginKeyMethod · 0.45
endKeyMethod · 0.45
is_unknown_rangeMethod · 0.45
is_empty_rangeMethod · 0.45

Tested by

no test coverage detected