]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: transit creating_pgs from pgmap when upgrading 14551/head
authorKefu Chai <kchai@redhat.com>
Fri, 14 Apr 2017 07:49:14 +0000 (15:49 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 14 Apr 2017 08:45:23 +0000 (16:45 +0800)
commit27dc8a16854c990a041433e337981c075a5678bd
tree3ca9101574a256eddf9ea4031ee336c05014e380
parent7aa5792d19d66667bfe342628a6c5f4f3874ca64
mon/OSDMonitor: transit creating_pgs from pgmap when upgrading

there could be some pg(s) still being created when we are upgrading to
luminous, and the pools holding them are not changed in the sense of
pg_pool_t::last_change after the upgrade and before we scan for
creating pgs. in that case, the existing update_pending_creatings()
will fail to collect the pgs being created before the upgrade.

with this change, the creating_pgs in pgmap are also used for updating
the OSDMonitor's creating_pgs if it's updated.

but we should stopupdating the pgmap once the upgrade completes. i.e.
stop dispatching MSG_PGSTATS messages to PGMonitor if the quorum and all
osds are luminous.

Fixes: http://tracker.ceph.com/issues/19584
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc