From a0071c795613ba31b9c0b168e8d353f2f052a191 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 25 Jun 2022 13:57:05 -0700 Subject: [PATCH] ircd::db::database::env: Replace panic throws into noexcepts. --- ircd/db_env.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ircd/db_env.cc b/ircd/db_env.cc index d2163f286..f5ac6a865 100644 --- a/ircd/db_env.cc +++ b/ircd/db_env.cc @@ -754,7 +754,7 @@ noexcept try } catch(const std::exception &e) { - throw panic + ircd::terminate { "[%s] time to string :%s", d.name, @@ -963,7 +963,7 @@ const noexcept try } catch(const std::exception &e) { - throw panic + ircd::terminate { "[%s] set background threads :%s", d.name, @@ -1170,7 +1170,7 @@ const noexcept try } catch(const std::exception &e) { - throw panic + ircd::terminate { "[%s] get thread id :%s", d.name, @@ -2926,7 +2926,7 @@ noexcept try // RocksDB sez that this call requires "External synchronization" i.e the // caller, not this class is responsible for exclusion. We assert anyway. if(unlikely(!bool(lock))) - throw panic + ircd::terminate { "[%s] Unexpected concurrent access to seqfile %p", d.name, @@ -3014,7 +3014,7 @@ noexcept try }; if(unlikely(!bool(lock))) - throw panic + ircd::terminate { "[%s] Unexpected concurrent access to seqfile %p", d.name, @@ -3102,7 +3102,7 @@ noexcept try // RocksDB sez that this call requires "External synchronization" i.e the // caller, not this class is responsible for exclusion. We assert anyway. if(unlikely(!bool(lock))) - throw panic + ircd::terminate { "[%s] Unexpected concurrent access to seqfile %p", d.name,