mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:vm: Additional sequence barrier for shutdown.
This commit is contained in:
parent
1a0d617803
commit
592d8a90c2
1 changed files with 14 additions and 1 deletions
15
matrix/vm.cc
15
matrix/vm.cc
|
@ -72,7 +72,20 @@ noexcept
|
|||
return !eval::executing && !eval::injecting;
|
||||
});
|
||||
|
||||
assert(!sequence::pending);
|
||||
if(sequence::pending)
|
||||
log::warning
|
||||
{
|
||||
log, "Waiting for pending:%zu sequencing (retired:%zu committed:%zu uncommitted:%zu)",
|
||||
sequence::pending,
|
||||
sequence::retired,
|
||||
sequence::committed,
|
||||
sequence::uncommitted,
|
||||
};
|
||||
|
||||
sequence::dock.wait([]
|
||||
{
|
||||
return !sequence::pending;
|
||||
});
|
||||
|
||||
event::id::buf event_id;
|
||||
const auto retired
|
||||
|
|
Loading…
Reference in a new issue