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

Function logRocksDBError

fdbserver/KeyValueStoreRocksDB.actor.cpp:906–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904}
905
906void logRocksDBError(UID id,
907 const rocksdb::Status& status,
908 const std::string& method,
909 Optional<Severity> sev = Optional<Severity>()) {
910 Severity level = sev.present() ? sev.get() : (status.IsTimedOut() ? SevWarn : SevError);
911 TraceEvent e(level, "RocksDBError", id);
912 e.detail("Error", status.ToString()).detail("Method", method).detail("RocksDBSeverity", status.severity());
913 if (status.IsIOError()) {
914 e.detail("SubCode", status.subcode());
915 }
916}
917
918Error statusToError(const rocksdb::Status& s) {
919 if (s.IsIOError()) {

Callers 3

actionMethod · 0.70
actionMethod · 0.70
actionMethod · 0.70

Calls 4

detailMethod · 0.80
getMethod · 0.65
presentMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected