From 391e4adc586f6dfa6d588e058fe59e7ad7aaa4aa Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 26 Feb 2020 12:00:49 -0800 Subject: [PATCH] ircd::db::database::env::sequential_file: Eliminate throw into noexcept. --- ircd/db_env.cc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/ircd/db_env.cc b/ircd/db_env.cc index bf0b3085a..dd2c108ff 100644 --- a/ircd/db_env.cc +++ b/ircd/db_env.cc @@ -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,