mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::db: Remove yield in several callbacks; assertion for stoppage.
This commit is contained in:
parent
a049063562
commit
510b8d4aad
1 changed files with 1 additions and 11 deletions
|
@ -2795,8 +2795,6 @@ noexcept
|
|||
info.num_entries,
|
||||
info.num_deletes,
|
||||
};
|
||||
|
||||
ctx::yield();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -2910,15 +2908,7 @@ noexcept
|
|||
reflect(info.condition.cur)
|
||||
};
|
||||
|
||||
int i
|
||||
{
|
||||
info.condition.prev == WriteStallCondition::kDelayed? 4:
|
||||
info.condition.prev == WriteStallCondition::kStopped? 8:
|
||||
0
|
||||
};
|
||||
|
||||
while(i--)
|
||||
ctx::yield();
|
||||
assert(info.condition.cur != rocksdb::WriteStallCondition::kStopped);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue