call CDir::scrub_finished() after finishing scrub a dirfrag
Signed-off-by: Yan, Zheng <zyan@redhat.com>
if (scrubbing.empty()) {
dout(20) << __func__ << " dirfrag done: " << *dir << dendl;
// FIXME: greg: What's the diff meant to be between done and terminal
+ dir->scrub_finished();
*done = true;
*is_terminal = true;
- continue;
} else {
dout(20) << __func__ << " " << scrubbing.size() << " dentries still "
"scrubbing in " << *dir << dendl;
- return;
}
+ return;
}
if (r < 0) {