Allow cleaner to work after database is closed.

This commit is contained in:
John Preston
2018-08-29 22:17:06 +03:00
parent 8210a51fdc
commit 2001d3c617
5 changed files with 27 additions and 2 deletions
@@ -39,6 +39,14 @@ void Database::close(FnMut<void()> &&done) {
});
}
void Database::waitForCleaner(FnMut<void()> &&done) {
_wrapped.with([
done = std::move(done)
](Implementation &unwrapped) mutable {
unwrapped.waitForCleaner(std::move(done));
});
}
void Database::put(
const Key &key,
QByteArray &&value,