mirror of
https://github.com/matrix-construct/construct
synced 2024-12-29 00:44:17 +01:00
ircd:Ⓜ️ Minor desc cleanup; minor cleanup exception rewrite.
This commit is contained in:
parent
d5748ef1bd
commit
199ccad3e1
2 changed files with 13 additions and 4 deletions
|
@ -1420,9 +1420,6 @@ ircd::m::dbs::desc::events
|
||||||
// they are designed for fast sequential iterations.
|
// they are designed for fast sequential iterations.
|
||||||
//
|
//
|
||||||
|
|
||||||
// (state tree node id) => (state tree node)
|
|
||||||
events__state_node,
|
|
||||||
|
|
||||||
// (room_id, event_id) => (state_root)
|
// (room_id, event_id) => (state_root)
|
||||||
// Sequence of all events for a room, ever.
|
// Sequence of all events for a room, ever.
|
||||||
events__room_events,
|
events__room_events,
|
||||||
|
@ -1434,4 +1431,12 @@ ircd::m::dbs::desc::events
|
||||||
// (room_id, type, state_key) => (event_id)
|
// (room_id, type, state_key) => (event_id)
|
||||||
// Sequence of the PRESENT STATE of the room.
|
// Sequence of the PRESENT STATE of the room.
|
||||||
events__room_state,
|
events__room_state,
|
||||||
|
|
||||||
|
////////
|
||||||
|
//
|
||||||
|
// Other columns
|
||||||
|
//
|
||||||
|
|
||||||
|
// (state tree node id) => (state tree node)
|
||||||
|
events__state_node,
|
||||||
};
|
};
|
||||||
|
|
|
@ -410,7 +410,11 @@ catch(const db::not_found &e)
|
||||||
{
|
{
|
||||||
throw m::NOT_FOUND
|
throw m::NOT_FOUND
|
||||||
{
|
{
|
||||||
"(%s,%s) in %s :%s", type, state_key, room_id, e.what()
|
"(%s,%s) in %s :%s",
|
||||||
|
type,
|
||||||
|
state_key,
|
||||||
|
string_view{room_id},
|
||||||
|
e.what()
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue