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

Function statusToError

fdbserver/KeyValueStoreRocksDB.actor.cpp:918–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

916}
917
918Error statusToError(const rocksdb::Status& s) {
919 if (s.IsIOError()) {
920 return io_error();
921 } else if (s.IsTimedOut()) {
922 return transaction_too_old();
923 } else {
924 return unknown_error();
925 }
926}
927
928struct RocksDBKeyValueStore : IKeyValueStore {
929 struct Writer : IThreadPoolReceiver {

Callers 3

actionMethod · 0.70
actionMethod · 0.70
actionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected