]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: log the number of 'dups' entries in a PG Log 46606/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 9 Jun 2022 18:44:10 +0000 (18:44 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 9 Jun 2022 20:01:40 +0000 (20:01 +0000)
We really want to have the ability to know how many
entries `PGLog::IndexedLog::dups` has inside.
The current ways are either invasive (stopping an OSD)
or indirect (examination of `dump_mempools`).

The code comes from Nitzan Mordechai (part of
ede37edd79a9d5560dfb417ec176327edfc0e4a3).

Fixes: https://tracker.ceph.com/issues/55982
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/osd/PeeringState.cc

index 0158ed92da6ad9d1704cd4a9a223af8f91badc3a..68b8d22259955dfb82455429b25b3ed8abd8fbc3 100644 (file)
@@ -4164,6 +4164,8 @@ void PeeringState::append_log(
 
   psdout(10) << __func__ << " approx pg log length =  "
             << pg_log.get_log().approx_size() << dendl;
+  psdout(10) << __func__ << " dups pg log length =  "
+            << pg_log.get_log().dups.size() << dendl;
   psdout(10) << __func__ << " transaction_applied = "
             << transaction_applied << dendl;
   if (!transaction_applied || async)