diff --git a/matrix/events.cc b/matrix/events.cc index f2ca3a04e..8f0ada0d1 100644 --- a/matrix/events.cc +++ b/matrix/events.cc @@ -142,7 +142,10 @@ ircd::m::events::dump__file(const string_view &filename) json::stack out { - buf, flusher + buf, + flusher, + -1UL, // high watermark + size(buf) // low watermark }; json::stack::array top @@ -162,6 +165,11 @@ ircd::m::events::dump__file(const string_view &filename) it->second }; + const json::stack::checkpoint cp + { + out + }; + top.append(source); ++ecount; }