]> git.apps.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>
Mon, 16 Jul 2018 22:06:12 +0000 (15:06 -0700)
Signed-off-by: Neha Ojha <nojha@redhat.com>
src/osd/PG.cc
src/osd/PGLog.cc

index 0f0e644f2280cef5ce09b5b77fef498da8af8cd5..c5de584a78ca2f0613b22c43a2f269957b223d61 100644 (file)
@@ -3679,6 +3679,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