From fd8137415072e1feb375e7f793eb144382eb855e Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 3 Mar 2017 16:42:53 +0800 Subject: [PATCH] osd/PGLog: always use ldpp_dout() to print with dpp lderr(dpp->get_cct()) could crash if dpp is null. Signed-off-by: Kefu Chai --- src/osd/PGLog.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index 8cfaa484144e1..aec52580a050c 100644 --- a/src/osd/PGLog.h +++ b/src/osd/PGLog.h @@ -1242,9 +1242,9 @@ public: continue; if (i.second.need > log.tail || i.first > info.last_backfill) { - lderr(dpp->get_cct()) << __func__ << ": invalid missing set entry found " - << i.first - << dendl; + ldpp_dout(dpp, -1) << __func__ << ": invalid missing set entry found " + << i.first + << dendl; assert(0 == "invalid missing set entry found"); } bufferlist bv; -- 2.39.5