From ce01d99c9af00fb0149eb1206994c477963d6095 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Sun, 21 Oct 2018 10:10:59 +0300 Subject: [PATCH] log: don't clear ring when dump_recent is called so the recent entries are still available if dump_recent is called again. This is the case e.g. when the signal handler wants to dump the recent entries both to the regular log and to the crash log. Signed-off-by: Mykola Golub --- src/log/Log.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log/Log.cc b/src/log/Log.cc index 82196645bd498..302a2e8253873 100644 --- a/src/log/Log.cc +++ b/src/log/Log.cc @@ -349,7 +349,7 @@ void Log::dump_recent() EntryVector t; t.insert(t.end(), std::make_move_iterator(m_recent.begin()), std::make_move_iterator(m_recent.end())); m_recent.clear(); - _flush(t, false, true); + _flush(t, true, true); } char buf[4096]; -- 2.39.5