0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

construct: Interruption point after command.

This commit is contained in:
Jason Volk 2018-08-17 14:26:44 -07:00
parent bf429e0c9e
commit 9cee6a40c9
2 changed files with 2 additions and 7 deletions

View file

@ -138,6 +138,8 @@ try
if(!handle_line(line))
break;
ctx::interruption_point();
}
std::cout << std::endl;

View file

@ -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;