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

Function traceChecksumValue

fdbclient/StorageServerInterface.cpp:31–33  ·  view source on GitHub ↗

if size + hex of checksum is shorter than value, record that instead of actual value. break-even point is 12 characters

Source from the content-addressed store, hash-verified

29// if size + hex of checksum is shorter than value, record that instead of actual value. break-even point is 12
30// characters
31std::string traceChecksumValue(const ValueRef& s) {
32 return s.size() > 12 ? format("(%d)%08x", s.size(), crc32c_append(0, s.begin(), s.size())) : s.toString();
33}
34
35// point reads
36template <>

Callers 3

TSS_traceMismatchFunction · 0.85
traceKeyValuesDiffFunction · 0.85

Calls 5

crc32c_appendFunction · 0.85
formatFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected