mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 02:02:38 +01:00
construct: Interruption point after command.
This commit is contained in:
parent
bf429e0c9e
commit
9cee6a40c9
2 changed files with 2 additions and 7 deletions
|
@ -138,6 +138,8 @@ try
|
|||
|
||||
if(!handle_line(line))
|
||||
break;
|
||||
|
||||
ctx::interruption_point();
|
||||
}
|
||||
|
||||
std::cout << std::endl;
|
||||
|
|
|
@ -4904,10 +4904,6 @@ ircd::db::compact(column &column,
|
|||
d.d->GetColumnFamilyMetaData(c, &cfmd);
|
||||
for(const auto &level : cfmd.levels)
|
||||
{
|
||||
// The operations in this loop might last a while. We don't want
|
||||
// to play games with the stack while rocksdb is in work, so we
|
||||
// mask interruptions during each iteration. The interruption will
|
||||
// be thrown either at ctor OR DTOR of this object if requested.
|
||||
ctx::interruption_point();
|
||||
ctx::uninterruptible::nothrow ui;
|
||||
|
||||
|
@ -4947,9 +4943,6 @@ ircd::db::compact(column &column,
|
|||
const std::pair<string_view, string_view> &range,
|
||||
const int &to_level)
|
||||
{
|
||||
// We don't want to play games with the stack while rocksdb is in work,
|
||||
// interruptions are masked for this frame. An interruption will be
|
||||
// thrown either at ctor OR DTOR of this object if requested.
|
||||
ctx::interruption_point();
|
||||
ctx::uninterruptible::nothrow ui;
|
||||
|
||||
|
|
Loading…
Reference in a new issue