0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 08:13:46 +02:00

ircd:Ⓜ️:vm: Clear existing eval txn on entry side instead of unwind.

This commit is contained in:
Jason Volk 2020-09-29 10:21:06 -07:00
parent fb823e3d40
commit 7034fadd64

View file

@ -571,11 +571,6 @@ ircd::m::vm::execute_pdu(eval &eval,
sequence::pending
};
const scope_restore remove_txn
{
eval.txn, std::shared_ptr<db::txn>{}
};
const scope_notify sequence_dock
{
sequence::dock, scope_notify::all
@ -843,6 +838,9 @@ ircd::m::vm::execute_pdu(eval &eval,
eval.phase, phase::INDEX
};
if(eval.txn)
eval.txn->clear();
if(!eval.txn && parent_post)
eval.txn = eval.parent->txn;