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:
parent
934ad6f70d
commit
b532523d04
1 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue