mds: properly execute scrub finish context

Bug was introduced by commit 7e52729699 (mds: flush after scrub repairs)

Fixes: http://tracker.ceph.com/issues/22058
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
This commit is contained in:
Yan, Zheng 2017-11-19 20:25:22 +08:00
parent b9ea759556
commit ff71fbdcbb

View File

@ -12114,7 +12114,7 @@ void MDCache::enqueue_scrub_work(MDRequestRef& mdr)
Context *fin = nullptr;
if (!header->get_recursive()) {
cs->take_finisher();
fin = cs->take_finisher();
}
// If the scrub did some repair, then flush the journal at the end of