Skip to content

Commit

Permalink
Merge pull request #15820 from liewegas/wip-20303
Browse files Browse the repository at this point in the history
mon/PGMap: slightly better debugging around pgmap updates

Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
liewegas committed Jun 22, 2017
2 parents 4a76eae + e6d2c00 commit bc867c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mon/PGMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bc867c7

Please sign in to comment.