]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: flush after scrub repairs
authorJohn Spray <john.spray@redhat.com>
Wed, 25 Oct 2017 10:30:57 +0000 (06:30 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 6 Feb 2018 17:50:01 +0000 (09:50 -0800)
commit6e544ac967b533f47ce2708b1757cd048ea2354c
tree2badf131a9854c79f3fbf70304a833aada10b653
parentf19f1e1cbc5b23eeb028c015c77ffe32306aba64
mds: flush after scrub repairs

Otherwise, if we restart the MDS right after the scrub,
then scrub again, it will see the same inconsistency when
it looks at the on-disk state.

This involves adapting the use of ScrubHeader to be something
writeable during scrub to record whether repair happened.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 7e52729699e87dd75022433153450fd4ba71b40e)
src/mds/CInode.cc
src/mds/CInode.h
src/mds/MDCache.cc
src/mds/ScrubHeader.h
src/mds/ScrubStack.cc
src/mds/ScrubStack.h