mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
ircd::db::database::env::sequential_file: Eliminate throw into noexcept.
This commit is contained in:
parent
139059f381
commit
391e4adc58
1 changed files with 13 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue