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:
parent
72a3ff2856
commit
a4bd140cc2
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue