0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd:Ⓜ️:vm: Unconditional dbtxn building; condition opts.write for committing only.

This commit is contained in:
Jason Volk 2020-04-27 18:27:01 -07:00
parent 8c4aa37c41
commit dfe1133cfb

View file

@ -596,11 +596,8 @@ ircd::m::vm::execute_pdu(eval &eval,
assert(sequence::retired < sequence::get(eval));
sequence::committed = sequence::get(eval);
if(likely(opts.write))
write_prepare(eval, event);
if(likely(opts.write))
write_append(eval, event);
write_prepare(eval, event);
write_append(eval, event);
// Generate post-eval/pre-notify effects. This function may conduct
// an entire eval of several more events recursively before returning.