0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd:Ⓜ️:events: Optimize db get options in dumper.

This commit is contained in:
Jason Volk 2020-01-10 14:48:16 -08:00
parent 5993c6cdf4
commit c4c9bb2762

View file

@ -104,7 +104,12 @@ ircd::m::events::dump__file(const string_view &filename)
char *pos{data(buf)};
size_t foff{0}, ecount{0}, acount{0}, errcount{0};
for(auto it(begin(dbs::event_json)); it; ++it) try
static const db::gopts gopts
{
db::get::NO_CACHE, db::get::NO_CHECKSUM
};
for(auto it(dbs::event_json.begin(gopts)); it; ++it) try
{
const event::idx seq
{