]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMap: slightly better debugging around pgmap updates 15820/head
authorSage Weil <sage@redhat.com>
Wed, 21 Jun 2017 21:50:59 +0000 (17:50 -0400)
committerSage Weil <sage@redhat.com>
Wed, 21 Jun 2017 21:50:59 +0000 (17:50 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc

index c0277b7a518a235ce18162afcb856e59b934a0cd..91e06fb99e6c5ec355f2a3c666283ad6b3193d32 100644 (file)
@@ -3410,9 +3410,12 @@ void PGMapUpdater::check_osd_map(
       my_pg_num = q->second;
     unsigned pg_num = pi.get_pg_num();
     if (my_pg_num != pg_num) {
+      ldout(cct,10) << __func__ << " pool " << poolid << " pg_num " << pg_num
+                   << " != my pg_num " << my_pg_num << dendl;
       for (unsigned ps = my_pg_num; ps < pg_num; ++ps) {
        pg_t pgid(ps, poolid);
        if (pending_inc->pg_stat_updates.count(pgid) == 0) {
+         ldout(cct,20) << __func__ << " adding " << pgid << dendl;
          pg_stat_t &stats = pending_inc->pg_stat_updates[pgid];
          stats.last_fresh = osdmap.get_modified();
          stats.last_active = osdmap.get_modified();