0
0
Fork 0
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:
Jason Volk 2019-01-15 15:41:05 -08:00
parent 52a9ca9635
commit 4b88fcd157

View file

@ -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