]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: add send_pg_create() to OSDMonitor
authorKefu Chai <kchai@redhat.com>
Thu, 9 Mar 2017 04:08:29 +0000 (12:08 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:21:17 +0000 (20:21 +0800)
commit43ded67243c88a1abb7f07aa4dbdc326eec7633a
tree3ff6f7d5fc3c5cbc90c6044aa28949f8d5a72e98
parentdf6dafe1bb8404da70e7ddb333e0007578af344a
mon/OSDMonitor: add send_pg_create() to OSDMonitor

OSDMonitor will handle the pg-create subscriptions after luminous.
1. scan new pools to get the pgs to be created
2. send pg creates using the collected pgs
3. trim the creating_pgs using the "created!" messages from OSD.

please note that we need to wait for the OSDMonitor::mapping to be fully
populated, so we cannot scan the incrementa map for creating pgs until
it is applied and accepted by other monitors.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/CreatingPGs.h [new file with mode: 0644]
src/mon/Monitor.cc
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h
src/mon/PGMonitor.cc
src/test/encoding/types.h