0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-23 22:13:55 +01:00

ircd:Ⓜ️ Add db::sopts passthru in dbs::write_opts.

This commit is contained in:
Jason Volk 2022-06-15 20:43:36 -07:00
parent 445fe80d75
commit ffd61f3a2f
2 changed files with 10 additions and 1 deletions

View file

@ -71,6 +71,9 @@ struct ircd::m::dbs::write_opts
/// actual transaction.
db::op op {db::op::SET};
/// Lower-level write options passed to the transaction's execution.
db::sopts sopts {(db::set)0};
/// Principal's index number. Most codepaths do not permit zero. This may
/// be zero for blacklisting, but the blacklist option must be set.
uint64_t event_idx {0};

View file

@ -1172,6 +1172,12 @@ ircd::m::vm::write_commit(eval &eval)
*eval.txn
};
assert(eval.opts);
const auto &sopts
{
eval.opts->wopts.sopts
};
const auto db_seq_before
{
#ifdef RB_DEBUG
@ -1188,7 +1194,7 @@ ircd::m::vm::write_commit(eval &eval)
write_commit_cycles
};
txn();
txn(wopts.sopts);
}
++write_commit_count;