0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-16 17:08:20 +02:00

ircd:Ⓜ️:room::state::space: Fix key construction for wildcard ranges.

This commit is contained in:
Jason Volk 2019-08-18 04:10:57 -07:00
parent 01df345789
commit 48ee5e01d5

View file

@ -2830,10 +2830,15 @@ ircd::m::room::state::space::for_each(const string_view &type,
const closure &closure)
const
{
const int64_t &_depth
{
type? depth : 0L
};
char buf[dbs::ROOM_STATE_SPACE_KEY_MAX_SIZE];
const string_view &key
{
dbs::room_state_space_key(buf, room.room_id, type, state_key, depth, 0UL)
dbs::room_state_space_key(buf, room.room_id, type, state_key, _depth, 0UL)
};
auto it