]> 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>
Mon, 23 Jul 2018 18:35:27 +0000 (14:35 -0400)
Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit f48584a5b468949c31bffba1b507fb13a8756284)

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

index 60a604ae29fd6f116eafd14c3380043c6a6c63b7..164d3a8b6a754d069308f9a9e88ee5549d7b50bb 100644 (file)
@@ -3275,6 +3275,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