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

Function logRocksDBError

fdbserver/KeyValueStoreShardedRocksDB.actor.cpp:187–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void logRocksDBError(const rocksdb::Status& status, const std::string& method) {
188 auto level = status.IsTimedOut() ? SevWarn : SevError;
189 TraceEvent e(level, "ShardedRocksDBError");
190 e.detail("Error", status.ToString()).detail("Method", method).detail("ShardedRocksDBSeverity", status.severity());
191 if (status.IsIOError()) {
192 e.detail("SubCode", status.subcode());
193 }
194}
195
196// TODO: define shard ops.
197enum class ShardOp {

Callers 9

initMethod · 0.70
~PhysicalShardMethod · 0.70
readRangeInDbFunction · 0.70
initMethod · 0.70
closeAllShardsMethod · 0.70
destroyAllShardsMethod · 0.70
actionMethod · 0.70
doCommitMethod · 0.70
actionMethod · 0.70

Calls 2

detailMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected