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:
parent
840b3c4b0c
commit
4b816f8c74
1 changed files with 10 additions and 0 deletions
10
ircd/json.cc
10
ircd/json.cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue