0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 15:30:52 +01:00

ircd:Ⓜ️:vm: Add dbs::write_opts to vm::opts.

This commit is contained in:
Jason Volk 2019-05-11 15:30:40 -07:00
parent 6fe7329189
commit 3293443cb8
2 changed files with 4 additions and 1 deletions

View file

@ -156,6 +156,9 @@ struct ircd::m::vm::opts
/// Make writes to database /// Make writes to database
bool write {true}; bool write {true};
/// Custom write_opts to use during write.
dbs::write_opts wopts;
/// Call post hooks or false to bypass post-write / pre-notify effects. /// Call post hooks or false to bypass post-write / pre-notify effects.
bool post {true}; bool post {true};

View file

@ -839,7 +839,7 @@ ircd::m::vm::write_append(eval &eval,
}; };
// Preliminary write_opts // Preliminary write_opts
m::dbs::write_opts wopts; m::dbs::write_opts wopts(opts.wopts);
m::state::id_buffer new_root_buf; m::state::id_buffer new_root_buf;
wopts.root_out = new_root_buf; wopts.root_out = new_root_buf;
wopts.present = opts.present; wopts.present = opts.present;