mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 01:26:58 +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_entries,
|
||||||
info.num_deletes,
|
info.num_deletes,
|
||||||
};
|
};
|
||||||
|
|
||||||
ctx::yield();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -2910,15 +2908,7 @@ noexcept
|
||||||
reflect(info.condition.cur)
|
reflect(info.condition.cur)
|
||||||
};
|
};
|
||||||
|
|
||||||
int i
|
assert(info.condition.cur != rocksdb::WriteStallCondition::kStopped);
|
||||||
{
|
|
||||||
info.condition.prev == WriteStallCondition::kDelayed? 4:
|
|
||||||
info.condition.prev == WriteStallCondition::kStopped? 8:
|
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
while(i--)
|
|
||||||
ctx::yield();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue