mirror of
https://github.com/matrix-construct/construct
synced 2024-09-25 18:08:52 +02: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
|
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,
|
||||||
|
|
Loading…
Reference in a new issue