0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

ircd::json::stack: Warning when flushing under a checkpoint.

This commit is contained in:
Jason Volk 2019-03-28 15:40:25 -07:00
parent 840b3c4b0c
commit 4b816f8c74

View file

@ -734,7 +734,17 @@ noexcept try
return false;
if(cp)
{
log::dwarning
{
"Flushing json::stack(%p) %zu bytes under checkpoint(%p)",
this,
size(buf.completed()),
cp,
};
cp = nullptr;
}
// The user returns the portion of the buffer they were able to flush
// rather than forcing them to wait on their sink to flush the whole