From 4b816f8c74486b67f8937fb795999ed0526770dd Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 28 Mar 2019 15:40:25 -0700 Subject: [PATCH] ircd::json::stack: Warning when flushing under a checkpoint. --- ircd/json.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ircd/json.cc b/ircd/json.cc index cc5dcf995..281d302ad 100644 --- a/ircd/json.cc +++ b/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