| 32 | public: |
| 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) {} |
nothing calls this directly
no test coverage detected