]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: print pg log length and trim_to
authorNeha Ojha <nojha@redhat.com>
Mon, 16 Jul 2018 22:06:12 +0000 (15:06 -0700)
committerNeha Ojha <nojha@redhat.com>
Fri, 18 Jan 2019 19:06:13 +0000 (14:06 -0500)
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit f48584a5b468949c31bffba1b507fb13a8756284)

src/osd/PG.cc
src/osd/PGLog.cc

index 888957e8739688d0b375a459b8748a79adf1b561..cc80ff3b98031b845931d3e24affc2873b9091ff 100644 (file)
@@ -3458,6 +3458,8 @@ void PG::append_log(
        roll_forward_to));
   }
 
+  dout(10) << __func__ << " approx pg log length =  "
+           << pg_log.get_log().approx_size() << dendl;
   pg_log.trim(trim_to, info);
 
   // update the local pg, pg log
index 96f49fd9d85011330de2cd036f9397c06b250727..80e159308499fb1b7acb25c2e0202e37110814f5 100644 (file)
@@ -164,6 +164,7 @@ void PGLog::trim(
   eversion_t trim_to,
   pg_info_t &info)
 {
+  dout(10) << __func__ << " proposed trim_to = " << trim_to << dendl;
   // trim?
   if (trim_to > log.tail) {
     // We shouldn't be trimming the log past last_complete