From: Kefu Chai Date: Fri, 3 Mar 2017 08:42:53 +0000 (+0800) Subject: osd/PGLog: always use ldpp_dout() to print with dpp X-Git-Tag: v12.0.1~161^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd8137415072e1feb375e7f793eb144382eb855e;p=ceph.git 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 --- diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h index 8cfaa484144e..aec52580a050 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;