0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01: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
ircd::db::database::env::sequential_file::Skip(uint64_t size)
noexcept
noexcept try
{
const ctx::uninterruptible::nothrow ui;
const std::unique_lock lock
@ -3127,6 +3127,18 @@ noexcept
offset += size;
return Status::OK();
}
catch(const panic &e)
{
log::critical
{
log, "[%s] seqfile:%p :%s",
d.name,
this,
e.what(),
};
return Status::Busy();
}
rocksdb::Status
ircd::db::database::env::sequential_file::InvalidateCache(size_t offset,