0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd::db: Add interruption threshold at seek call.

This commit is contained in:
Jason Volk 2019-02-07 20:57:44 -08:00
parent 72a3ff2856
commit a4bd140cc2

View file

@ -6923,10 +6923,10 @@ ircd::db::seek(database::column &c,
const rocksdb::ReadOptions &opts,
std::unique_ptr<rocksdb::Iterator> &it)
{
const ctx::uninterruptible::nothrow ui;
if(!it)
{
const ctx::uninterruptible::nothrow ui;
database &d(*c.d);
rocksdb::ColumnFamilyHandle *const &cf(c);
it.reset(d.d->NewIterator(opts, cf));
@ -6941,6 +6941,8 @@ ircd::db::_seek(database::column &c,
const rocksdb::ReadOptions &opts,
rocksdb::Iterator &it)
{
const ctx::uninterruptible ui;
#ifdef RB_DEBUG_DB_SEEK
database &d(*c.d);
const ircd::timer timer;