mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +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;
|
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
|
||||||
|
|
Loading…
Reference in a new issue