0
0
Fork 0
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:
Jason Volk 2020-12-20 20:36:02 -08:00
parent a049063562
commit 510b8d4aad

View file

@ -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);
}
///////////////////////////////////////////////////////////////////////////////