mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 11:18:51 +02:00
ircd:Ⓜ️:dbs: Revert 563f833ab3; relax assertion.
This commit is contained in:
parent
ca7b7b0c61
commit
fb823e3d40
1 changed files with 1 additions and 5 deletions
|
@ -222,11 +222,9 @@ ircd::m::dbs::_index_event_refs_prev(db::txn &txn,
|
||||||
prev_id[i] = prev.prev_event(i),
|
prev_id[i] = prev.prev_event(i),
|
||||||
prev_idx[i] = 0;
|
prev_idx[i] = 0;
|
||||||
|
|
||||||
auto _opts(opts);
|
|
||||||
_opts.interpose = {};
|
|
||||||
const size_t found
|
const size_t found
|
||||||
{
|
{
|
||||||
find_event_idx({prev_idx, count}, {prev_id, count}, _opts)
|
find_event_idx({prev_idx, count}, {prev_id, count}, opts)
|
||||||
};
|
};
|
||||||
|
|
||||||
for(size_t i(0); i < count; ++i)
|
for(size_t i(0); i < count; ++i)
|
||||||
|
@ -249,8 +247,6 @@ ircd::m::dbs::_index_event_refs_prev(db::txn &txn,
|
||||||
}
|
}
|
||||||
|
|
||||||
assert(opts.event_idx != prev_idx[i]);
|
assert(opts.event_idx != prev_idx[i]);
|
||||||
assert(prev_idx[i] < opts.event_idx);
|
|
||||||
assert(prev_idx[i] <= vm::sequence::retired);
|
|
||||||
assert(prev_idx[i] != 0 && opts.event_idx != 0);
|
assert(prev_idx[i] != 0 && opts.event_idx != 0);
|
||||||
thread_local char buf[EVENT_REFS_KEY_MAX_SIZE];
|
thread_local char buf[EVENT_REFS_KEY_MAX_SIZE];
|
||||||
const string_view &key
|
const string_view &key
|
||||||
|
|
Loading…
Reference in a new issue