]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMonitor: fix force_create_pg 12539/head
authorSage Weil <sage@redhat.com>
Tue, 31 Jan 2017 17:31:42 +0000 (12:31 -0500)
committerSage Weil <sage@redhat.com>
Mon, 6 Feb 2017 14:32:52 +0000 (09:32 -0500)
commit9a41a0b7289fa59f4b747a63e152e88af6e8abd5
tree7e6c3629058706fd991052095222205a31512a5c
parent15f17bcca0bde2ed15bb45d67659f4ebbd4cb516
mon/PGMonitor: fix force_create_pg

We weren't carefully registering the creating PG.  In
particular, the current osd mappings (acting, up, etc.)
weren't getting filled in, which meant the PG wasn't
(necessarily) mapped to an OSD until the OSDMap updated
and we recalculated mappings.

Fix by sending us through the common code path so that
all fields get updated properly.

Fixes: http://tracker.ceph.com/issues/18298
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.h
src/mon/PGMonitor.cc