flat_mutation_reader: return future from next_partition
To allow it to asynchronously close underlying readers on next_partition(). Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -162,12 +162,13 @@ class build_progress_virtual_reader {
|
||||
});
|
||||
}
|
||||
|
||||
virtual void next_partition() override {
|
||||
virtual future<> next_partition() override {
|
||||
_end_of_stream = false;
|
||||
clear_buffer_to_next_partition();
|
||||
if (is_buffer_empty()) {
|
||||
_underlying.next_partition();
|
||||
return _underlying.next_partition();
|
||||
}
|
||||
return make_ready_future<>();
|
||||
}
|
||||
|
||||
virtual future<> fast_forward_to(const dht::partition_range& pr, db::timeout_clock::time_point timeout) override {
|
||||
|
||||
Reference in New Issue
Block a user