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

Method setLatestError

flow/Trace.cpp:642–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void LatestEventCache::setLatestError(const TraceEventFields& contents) {
643 if (TraceEvent::isNetworkThread()) { // The latest event cache doesn't track errors that happen on other threads
644 latestErrors[getAddressIndex()] = contents;
645 }
646}
647
648TraceEventFields LatestEventCache::getLatestError() {
649 return latestErrors[getAddressIndex()];

Callers 1

writeEventMethod · 0.80

Calls 1

getAddressIndexFunction · 0.85

Tested by

no test coverage detected