]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PGLog: always use ldpp_dout() to print with dpp 13768/head
authorKefu Chai <kchai@redhat.com>
Fri, 3 Mar 2017 08:42:53 +0000 (16:42 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 3 Mar 2017 11:22:46 +0000 (19:22 +0800)
lderr(dpp->get_cct()) could crash if dpp is null.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/PGLog.h

index 8cfaa484144e1fea0a8296883a222f9ece9f7edb..aec52580a050c09ed8a4de147fa271a21ccf33bd 100644 (file)
@@ -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;