]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: always cleanup the scrub results 7792/head
authorKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 13:06:04 +0000 (21:06 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 25 Feb 2016 13:47:30 +0000 (21:47 +0800)
commit557c3bfe0d18b05d7f39ea920e1ca3e528d80e0e
treecba01bef2eca1063fb41e0a68d16080dfc0dd96f
parentb0b402193d0ffacba949294c0269426740fe1a21
osd: always cleanup the scrub results

the destructor of Scrub::Store asserts that `this->results` should
always be empty when it is free'd. before this change, if we are
repairing, the results is not flushed or cleaned up, this crashes
osd daemon when a new PG internval comes. also we should not keep
the results around even we don't want to populate them to the omap
if we are repairing, it's just a waste.

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