]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: clean up fastinfo key when last_update does not increase 32615/head
authorSage Weil <sage@redhat.com>
Mon, 13 Jan 2020 13:11:51 +0000 (07:11 -0600)
committerKefu Chai <kchai@redhat.com>
Tue, 14 Jan 2020 06:25:20 +0000 (14:25 +0800)
commit3266786527a9e4e05922abdedc640facc8260dee
tree61afd26816b0b6bd67f39becd61d22410d0b1c80
parent95f28bd4a6909aca9a19bd91dcbfaf07682bdfe5
osd/PG: clean up fastinfo key when last_update does not increase

If the last_update field goes backwards, we write a full info instead of
the fastinfo key. However, a stale fastinfo key may still be present, and
it may have a last_update that looks valid to a restarting OSD.

Fixes: https://tracker.ceph.com/issues/43580
Reported-by: song <jinglesong0814@163.com>
Signed-off-by: Sage Weil <sage@redhat.com>
src/crimson/osd/pg.cc
src/osd/PG.cc
src/osd/osd_types.cc
src/osd/osd_types.h
src/tools/ceph_objectstore_tool.cc