0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-04 21:08:57 +01:00

ircd::db: Remove critical assertion here and add note.

This commit is contained in:
Jason Volk 2018-11-29 16:18:29 -08:00
parent c74debac01
commit d1bfba2204

View file

@ -8419,7 +8419,6 @@ ircd::db::row::row(database &d,
// and reserve() it with one worst-case size of all possible columns.
// Then we resize it to this specific call's requirements and copy the
// column pointers. On sane platforms only one allocation ever occurs.
const ctx::critical_assertion ca;
thread_local std::vector<ColumnFamilyHandle *> handles;
assert(column_count <= d.columns.size());
handles.reserve(d.columns.size());
@ -8430,6 +8429,9 @@ ircd::db::row::row(database &d,
return ptr->handle.get();
});
// This has been seen to lead to IO and block the ircd::ctx;
// specifically when background options are aggressive and shortly
// after db opens.
throw_on_error
{
d.d->NewIterators(options, handles, &iterators)