]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG: do not publish_stats_to_osd in state exit() methods
authorSage Weil <sage@redhat.com>
Tue, 12 Dec 2017 19:32:52 +0000 (13:32 -0600)
committerSage Weil <sage@redhat.com>
Thu, 11 Jan 2018 23:07:00 +0000 (17:07 -0600)
commit5668dee0d05244cd8a230a819e54a7d62bb6c688
treee00b3b01c55724990f4cb19989a0f0e3426105f8
parentb0874dca54bf5bc1fe0e92a46051b54da0447263
osd/PG: do not publish_stats_to_osd in state exit() methods

exit() can happen due to AdvMap and a peering interval change, but it
runs before we have updated any of our internal state about whether we
are the primary, whether our pool is deleted and the pg no longer exists,
and so on.  The publish depends on (1) being primary, and (2) will crash
if the pool is gone from the OSDMap.

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