]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: set last_* PG fields on a creating PG 8881/head
authorSage Weil <sage@redhat.com>
Mon, 2 May 2016 18:28:55 +0000 (14:28 -0400)
committerSage Weil <sage@redhat.com>
Mon, 2 May 2016 18:28:55 +0000 (14:28 -0400)
commit3be3bc60c12448a36f607c8d4fbf3300c7bbdbee
tree4c40c7f7609ec6ea202160735636f9d7baa8d677
parent47f540d5b7ecc4ae193057df429db24ca6b3de8d
osd/PG: set last_* PG fields on a creating PG

Use the value from pg_history_t that ultimately came from the
mon if last_epoch_started == 0.  This establishes a sane lower
bound on these timestamps, and prevents a mon health error from
coming up about how a PG is stuck in whatever state while it is
being created.

(We addressed half of this problem in commit 6ca6aeac, but the
warning comes back as soon as the OSD reports with a creating
state.)

Fixes: http://tracker.ceph.com/issues/14952
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc