]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: avoid duplicating map_pg_create() effort on same maps 372/head
authorSage Weil <sage@inktank.com>
Thu, 27 Jun 2013 00:34:39 +0000 (17:34 -0700)
committerSage Weil <sage@inktank.com>
Thu, 27 Jun 2013 00:34:39 +0000 (17:34 -0700)
commit986185ca02b48cfa1450f6fe3bc21188efeacb82
treed97fdc8c267a3e1877a13ccb2a50f6d59a1488a0
parente635c47851d185eda557e36bdc4bf3775f7b87a2
mon/PGMonitor: avoid duplicating map_pg_create() effort on same maps

If we have an election and refresh, but the osdmap does not change, there
is no need to recalculate the pg create maps.  However, if we register new
creating pgs, we do... when the last_pg_scan update gets pulled out of
paxos (i.e., on both leader and peon mons).

Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/PGMonitor.cc
src/mon/PGMonitor.h