0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 08:24:08 +01:00

ircd:Ⓜ️ Minor desc cleanup; minor cleanup exception rewrite.

This commit is contained in:
Jason Volk 2018-04-03 02:11:49 -07:00
parent d5748ef1bd
commit 199ccad3e1
2 changed files with 13 additions and 4 deletions

View file

@ -1420,9 +1420,6 @@ ircd::m::dbs::desc::events
// they are designed for fast sequential iterations.
//
// (state tree node id) => (state tree node)
events__state_node,
// (room_id, event_id) => (state_root)
// Sequence of all events for a room, ever.
events__room_events,
@ -1434,4 +1431,12 @@ ircd::m::dbs::desc::events
// (room_id, type, state_key) => (event_id)
// Sequence of the PRESENT STATE of the room.
events__room_state,
////////
//
// Other columns
//
// (state tree node id) => (state tree node)
events__state_node,
};

View file

@ -410,7 +410,11 @@ catch(const db::not_found &e)
{
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()
};
}