]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: set CREATING flag for force-create-pg
authorSage Weil <sage@redhat.com>
Sat, 7 Apr 2018 19:35:36 +0000 (14:35 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 17:08:40 +0000 (12:08 -0500)
commitaea329eb9a35289c7da6ce27cf675b8c4aee2263
tree66f97e09415004fa7554a353a24e11624020d12e
parentfdfc5c64e8ada580792e4c02cb3ba44e0b265c17
mon/OSDMonitor: set CREATING flag for force-create-pg

In order to recreate a lost PG, we need to set the CREATING flag for the
pool.  This prevents pg_num from changing in future OSDMap epochs until
*after* the PG has successfully been instantiated.

Note that a pg_num change in *this* epoch is fine; the recreated PG will
instantiate in *this* epoch, which is /after/ the split a pg_num in this
epoch would describe.

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