0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-25 09:58:54 +02:00

ircd::db::database::env::sequential_file: Eliminate throw into noexcept.

This commit is contained in:
Jason Volk 2020-02-26 12:00:49 -08:00
parent 139059f381
commit 391e4adc58

View file

@ -3095,7 +3095,7 @@ catch(const std::exception &e)
rocksdb::Status rocksdb::Status
ircd::db::database::env::sequential_file::Skip(uint64_t size) ircd::db::database::env::sequential_file::Skip(uint64_t size)
noexcept noexcept try
{ {
const ctx::uninterruptible::nothrow ui; const ctx::uninterruptible::nothrow ui;
const std::unique_lock lock const std::unique_lock lock
@ -3127,6 +3127,18 @@ noexcept
offset += size; offset += size;
return Status::OK(); return Status::OK();
} }
catch(const panic &e)
{
log::critical
{
log, "[%s] seqfile:%p :%s",
d.name,
this,
e.what(),
};
return Status::Busy();
}
rocksdb::Status rocksdb::Status
ircd::db::database::env::sequential_file::InvalidateCache(size_t offset, ircd::db::database::env::sequential_file::InvalidateCache(size_t offset,