From b812831d183764a7cad5b16519b4ea87a71fb3d1 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 10 Mar 2016 14:30:56 -0500 Subject: [PATCH] mon/PGMonitor: make pg refresh debug output more informative Signed-off-by: Sage Weil --- src/mon/PGMonitor.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mon/PGMonitor.cc b/src/mon/PGMonitor.cc index 31cc9868bec4..bd399c6e6903 100644 --- a/src/mon/PGMonitor.cc +++ b/src/mon/PGMonitor.cc @@ -440,16 +440,19 @@ void PGMonitor::apply_pgmap_delta(bufferlist& bl) r = -ENOENT; } else { r = mon->store->get(pgmap_pg_prefix, stringify(pgid), pgbl); - dout(20) << " refreshing pg " << pgid << " got " << r << " len " - << pgbl.length() << dendl; - if (pg_pool_sum_old.count(pgid.pool()) == 0) pg_pool_sum_old[pgid.pool()] = pg_map.pg_pool_sum[pgid.pool()]; } if (r >= 0) { pg_map.update_pg(pgid, pgbl); + dout(20) << " refreshing pg " << pgid + << " " << pg_map.pg_stat[pgid].reported_epoch + << ":" << pg_map.pg_stat[pgid].reported_seq + << " " << pg_state_string(pg_map.pg_stat[pgid].state) + << dendl; } else { + dout(20) << " removing pg " << pgid << dendl; pg_map.remove_pg(pgid); if (pgid.ps() == 0) deleted_pools.insert(pgid.pool()); -- 2.47.3