]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: send pg-created message if any pg is newly created
authorKefu Chai <kchai@redhat.com>
Mon, 13 Mar 2017 07:13:03 +0000 (15:13 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:21:18 +0000 (20:21 +0800)
commita2e39d91c9508a27dc60c168dfb32fb352de44fe
tree3bc3e9394c2a4edbd6b626d50dba53a4dca7e244
parente5ea630e9f4671482b333aa51fbfe802beada055
osd: send pg-created message if any pg is newly created

add an option named "osd_created_report_interval" to specify the
interval to check and send the "pg_created" mesages to mon

because pg could update its state when it is still in the pg_stat_queue,
for example, to change its state to PG_STATE_CLEAN, we cannot tell if we
have sent a "pg-created" message for it or not without introducing a new
member variable in PG.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc