0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd:Ⓜ️:events: Add checkpoint to events dump; adjust low watermark for flush.

This commit is contained in:
Jason Volk 2020-09-10 23:25:46 -07:00
parent 934ad6f70d
commit b532523d04

View file

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