view_builder: stop: close all build_step readers

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2021-02-14 13:22:11 +02:00
parent 6082d854f9
commit dad6c94476

View File

@@ -1411,6 +1411,10 @@ future<> view_builder::stop() {
// ignored
}).handle_exception_type([] (const semaphore_timed_out&) {
// ignored
}).finally([this] {
return parallel_for_each(_base_to_build_step, [] (std::pair<const utils::UUID, build_step>& p) {
return p.second.reader.close();
});
});
});
}