mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd:Ⓜ️:vm: Factor opts.json into db::txn's reserve bytes.
This commit is contained in:
parent
52a9ca9635
commit
4b88fcd157
1 changed files with 5 additions and 1 deletions
|
@ -657,9 +657,13 @@ ircd::m::vm::_write(eval &eval,
|
|||
|
||||
const size_t reserve_bytes
|
||||
{
|
||||
opts.reserve_bytes == size_t(-1) && opts.json?
|
||||
json::serialized(event) * 2:
|
||||
|
||||
opts.reserve_bytes == size_t(-1)?
|
||||
json::serialized(event):
|
||||
opts.reserve_bytes
|
||||
|
||||
opts.reserve_bytes
|
||||
};
|
||||
|
||||
db::txn txn
|
||||
|
|
Loading…
Reference in a new issue