0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +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; return false;
if(cp) if(cp)
{
log::dwarning
{
"Flushing json::stack(%p) %zu bytes under checkpoint(%p)",
this,
size(buf.completed()),
cp,
};
cp = nullptr; cp = nullptr;
}
// The user returns the portion of the buffer they were able to flush // 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 // rather than forcing them to wait on their sink to flush the whole