From c4c9bb27621686013e2682714aacdbe5e0040bcc Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 10 Jan 2020 14:48:16 -0800 Subject: [PATCH] ircd::m::events: Optimize db get options in dumper. --- matrix/events.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matrix/events.cc b/matrix/events.cc index ce956279f..d93fecfa9 100644 --- a/matrix/events.cc +++ b/matrix/events.cc @@ -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 {