mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
ircd:Ⓜ️:state: Fix db::not_found propagating from nothrow'ing get().
This commit is contained in:
parent
7b38d216b4
commit
6976119109
1 changed files with 5 additions and 1 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include <ircd/m/m.h>
|
||||
|
||||
|
||||
/// Convenience to make a key and then get a value
|
||||
void
|
||||
ircd::m::state::get(const string_view &root,
|
||||
|
@ -64,6 +63,7 @@ ircd::m::state::get(std::nothrow_t,
|
|||
const string_view &root,
|
||||
const json::array &key,
|
||||
const val_closure &closure)
|
||||
try
|
||||
{
|
||||
bool ret{false};
|
||||
char nextbuf[ID_MAX_SZ];
|
||||
|
@ -91,6 +91,10 @@ ircd::m::state::get(std::nothrow_t,
|
|||
|
||||
return ret;
|
||||
}
|
||||
catch(const db::not_found &e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
size_t
|
||||
ircd::m::state::accumulate(const string_view &root,
|
||||
|
|
Loading…
Reference in a new issue