]> 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>
Thu, 2 Aug 2018 17:53:06 +0000 (17:53 +0000)
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit f48584a5b468949c31bffba1b507fb13a8756284)

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

index 4decea71dfac1046ecbd6fcb9bb6dd6656c0efaa..c386e4c2fdcb514f6a3823d7ddac8365a327aeda 100644 (file)
@@ -3674,6 +3674,8 @@ void PG::append_log(
     last_rollback_info_trimmed_to_applied = 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 978ae4c711797d9f7658a23eb6accf7f743d1d3d..d5557fc93657ab180ec2ba1abe8bc52552637356 100644 (file)
@@ -163,6 +163,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