]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon/OSDMonitor: set POOL_CREATING flag until initial pool pgs are created
authorSage Weil <sage@redhat.com>
Sat, 7 Apr 2018 02:39:14 +0000 (21:39 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 17:08:40 +0000 (12:08 -0500)
commit41c38559db31f4800fca6748860fbf329c2cba60
treeabefca3a36fbab11743e3863d6cfaa3e602addc2
parent0e526b467af2699e389e7f28a6d709f216e4533e
mon/OSDMonitor: set POOL_CREATING flag until initial pool pgs are created

Set the flag when the pool is created, and clear it when the initial set
of PGs have been created by the mon.  Move the update_creating_pgs()
block so that we can process the pgid removal from the creating list and
the pool flag removal in the same epoch; otherwise we might remove the
pgid but have no cluster activity to roll over another osdmap epoch to
allow the pool flag to be removed.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/CreatingPGs.h
src/mon/OSDMonitor.cc