mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
ircd:Ⓜ️:dbs: Add additional room state space key overload.
This commit is contained in:
parent
390b8bf2fb
commit
493bd85c11
2 changed files with 10 additions and 2 deletions
|
@ -27,6 +27,7 @@ namespace ircd::m::dbs
|
|||
string_view room_state_space_key(const mutable_buffer &out, const id::room &, const string_view &type, const string_view &state_key, const int64_t &depth, const event::idx & = 0);
|
||||
string_view room_state_space_key(const mutable_buffer &out, const id::room &, const string_view &type, const string_view &state_key);
|
||||
string_view room_state_space_key(const mutable_buffer &out, const id::room &, const string_view &type);
|
||||
string_view room_state_space_key(const mutable_buffer &out, const id::room &);
|
||||
room_state_space_key_parts room_state_space_key(const string_view &amalgam);
|
||||
|
||||
// room_id | type, state_key, depth, event_idx => --
|
||||
|
|
|
@ -3067,12 +3067,19 @@ ircd::m::dbs::desc::events__room_state_space__bloom__bits
|
|||
{ "default", 10L },
|
||||
};
|
||||
|
||||
ircd::string_view
|
||||
ircd::m::dbs::room_state_space_key(const mutable_buffer &out_,
|
||||
const id::room &room_id)
|
||||
{
|
||||
return room_state_space_key(out_, room_id, string_view{}, string_view{}, -1L, 0L);
|
||||
}
|
||||
|
||||
ircd::string_view
|
||||
ircd::m::dbs::room_state_space_key(const mutable_buffer &out_,
|
||||
const id::room &room_id,
|
||||
const string_view &type)
|
||||
{
|
||||
return room_state_space_key(out_, room_id, type, string_view{});
|
||||
return room_state_space_key(out_, room_id, type, string_view{}, -1L, 0L);
|
||||
}
|
||||
|
||||
ircd::string_view
|
||||
|
@ -3081,7 +3088,7 @@ ircd::m::dbs::room_state_space_key(const mutable_buffer &out_,
|
|||
const string_view &type,
|
||||
const string_view &state_key)
|
||||
{
|
||||
return room_state_space_key(out_, room_id, type, state_key, -1L);
|
||||
return room_state_space_key(out_, room_id, type, state_key, -1L, 0L);
|
||||
}
|
||||
|
||||
ircd::string_view
|
||||
|
|
Loading…
Add table
Reference in a new issue