mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd::db::database::env: Replace panic throws into noexcepts.
This commit is contained in:
parent
55f83976d6
commit
a0071c7956
1 changed files with 6 additions and 6 deletions
|
@ -754,7 +754,7 @@ noexcept try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] time to string :%s",
|
"[%s] time to string :%s",
|
||||||
d.name,
|
d.name,
|
||||||
|
@ -963,7 +963,7 @@ const noexcept try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] set background threads :%s",
|
"[%s] set background threads :%s",
|
||||||
d.name,
|
d.name,
|
||||||
|
@ -1170,7 +1170,7 @@ const noexcept try
|
||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] get thread id :%s",
|
"[%s] get thread id :%s",
|
||||||
d.name,
|
d.name,
|
||||||
|
@ -2926,7 +2926,7 @@ noexcept try
|
||||||
// RocksDB sez that this call requires "External synchronization" i.e the
|
// RocksDB sez that this call requires "External synchronization" i.e the
|
||||||
// caller, not this class is responsible for exclusion. We assert anyway.
|
// caller, not this class is responsible for exclusion. We assert anyway.
|
||||||
if(unlikely(!bool(lock)))
|
if(unlikely(!bool(lock)))
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] Unexpected concurrent access to seqfile %p",
|
"[%s] Unexpected concurrent access to seqfile %p",
|
||||||
d.name,
|
d.name,
|
||||||
|
@ -3014,7 +3014,7 @@ noexcept try
|
||||||
};
|
};
|
||||||
|
|
||||||
if(unlikely(!bool(lock)))
|
if(unlikely(!bool(lock)))
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] Unexpected concurrent access to seqfile %p",
|
"[%s] Unexpected concurrent access to seqfile %p",
|
||||||
d.name,
|
d.name,
|
||||||
|
@ -3102,7 +3102,7 @@ noexcept try
|
||||||
// RocksDB sez that this call requires "External synchronization" i.e the
|
// RocksDB sez that this call requires "External synchronization" i.e the
|
||||||
// caller, not this class is responsible for exclusion. We assert anyway.
|
// caller, not this class is responsible for exclusion. We assert anyway.
|
||||||
if(unlikely(!bool(lock)))
|
if(unlikely(!bool(lock)))
|
||||||
throw panic
|
ircd::terminate
|
||||||
{
|
{
|
||||||
"[%s] Unexpected concurrent access to seqfile %p",
|
"[%s] Unexpected concurrent access to seqfile %p",
|
||||||
d.name,
|
d.name,
|
||||||
|
|
Loading…
Reference in a new issue