From 3293443cb801e10dd859dc25888a276f63fb82b8 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 11 May 2019 15:30:40 -0700 Subject: [PATCH] ircd::m::vm: Add dbs::write_opts to vm::opts. --- include/ircd/m/vm.h | 3 +++ modules/vm.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/ircd/m/vm.h b/include/ircd/m/vm.h index a99815d31..d4e37f5af 100644 --- a/include/ircd/m/vm.h +++ b/include/ircd/m/vm.h @@ -156,6 +156,9 @@ struct ircd::m::vm::opts /// Make writes to database 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. bool post {true}; diff --git a/modules/vm.cc b/modules/vm.cc index 122321c70..1a5c24339 100644 --- a/modules/vm.cc +++ b/modules/vm.cc @@ -839,7 +839,7 @@ ircd::m::vm::write_append(eval &eval, }; // Preliminary write_opts - m::dbs::write_opts wopts; + m::dbs::write_opts wopts(opts.wopts); m::state::id_buffer new_root_buf; wopts.root_out = new_root_buf; wopts.present = opts.present;