flat_mutation_reader: get rid of timeout parameter
Now that the timeout is taken from the reader_permit. Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -120,8 +120,8 @@ class build_progress_virtual_reader {
|
||||
return clustering_key_prefix::from_exploded(r);
|
||||
}
|
||||
|
||||
virtual future<> fill_buffer(db::timeout_clock::time_point timeout) override {
|
||||
return _underlying.fill_buffer(timeout).then([this] {
|
||||
virtual future<> fill_buffer() override {
|
||||
return _underlying.fill_buffer().then([this] {
|
||||
_end_of_stream = _underlying.is_end_of_stream();
|
||||
while (!_underlying.is_buffer_empty()) {
|
||||
auto mf = _underlying.pop_mutation_fragment();
|
||||
@@ -171,16 +171,16 @@ class build_progress_virtual_reader {
|
||||
return make_ready_future<>();
|
||||
}
|
||||
|
||||
virtual future<> fast_forward_to(const dht::partition_range& pr, db::timeout_clock::time_point timeout) override {
|
||||
virtual future<> fast_forward_to(const dht::partition_range& pr) override {
|
||||
clear_buffer();
|
||||
_end_of_stream = false;
|
||||
return _underlying.fast_forward_to(pr, timeout);
|
||||
return _underlying.fast_forward_to(pr);
|
||||
}
|
||||
|
||||
virtual future<> fast_forward_to(position_range range, db::timeout_clock::time_point timeout) override {
|
||||
virtual future<> fast_forward_to(position_range range) override {
|
||||
forward_buffer_to(range.start());
|
||||
_end_of_stream = false;
|
||||
return _underlying.fast_forward_to(std::move(range), timeout);
|
||||
return _underlying.fast_forward_to(std::move(range));
|
||||
}
|
||||
|
||||
virtual future<> close() noexcept override {
|
||||
|
||||
@@ -926,8 +926,8 @@ future<> view_update_builder::close() noexcept {
|
||||
}
|
||||
|
||||
future<stop_iteration> view_update_builder::advance_all() {
|
||||
auto existings_f = _existings ? (*_existings)(db::no_timeout) : make_ready_future<optimized_optional<mutation_fragment>>();
|
||||
return when_all(_updates(db::no_timeout), std::move(existings_f)).then([this] (auto&& fragments) mutable {
|
||||
auto existings_f = _existings ? (*_existings)() : make_ready_future<optimized_optional<mutation_fragment>>();
|
||||
return when_all(_updates(), std::move(existings_f)).then([this] (auto&& fragments) mutable {
|
||||
_update = std::move(std::get<0>(fragments).get0());
|
||||
_existing = std::move(std::get<1>(fragments).get0());
|
||||
return stop_iteration::no;
|
||||
@@ -935,7 +935,7 @@ future<stop_iteration> view_update_builder::advance_all() {
|
||||
}
|
||||
|
||||
future<stop_iteration> view_update_builder::advance_updates() {
|
||||
return _updates(db::no_timeout).then([this] (auto&& update) mutable {
|
||||
return _updates().then([this] (auto&& update) mutable {
|
||||
_update = std::move(update);
|
||||
return stop_iteration::no;
|
||||
});
|
||||
@@ -945,7 +945,7 @@ future<stop_iteration> view_update_builder::advance_existings() {
|
||||
if (!_existings) {
|
||||
return make_ready_future<stop_iteration>(stop_iteration::no);
|
||||
}
|
||||
return (*_existings)(db::no_timeout).then([this] (auto&& existing) mutable {
|
||||
return (*_existings)().then([this] (auto&& existing) mutable {
|
||||
_existing = std::move(existing);
|
||||
return stop_iteration::no;
|
||||
});
|
||||
@@ -2040,7 +2040,7 @@ void view_builder::execute(build_step& step, exponential_backoff_retry r) {
|
||||
query::max_partitions,
|
||||
view_builder::consumer{*this, step, now});
|
||||
consumer.consume_new_partition(step.current_key); // Initialize the state in case we're resuming a partition
|
||||
auto built = step.reader.consume_in_thread(std::move(consumer), db::no_timeout);
|
||||
auto built = step.reader.consume_in_thread(std::move(consumer));
|
||||
|
||||
_as.check();
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ future<> view_update_generator::start() {
|
||||
::mutation_reader::forwarding::no);
|
||||
|
||||
inject_failure("view_update_generator_consume_staging_sstable");
|
||||
auto result = staging_sstable_reader.consume_in_thread(view_updating_consumer(s, std::move(permit), *t, sstables, _as, staging_sstable_reader_handle), db::no_timeout);
|
||||
auto result = staging_sstable_reader.consume_in_thread(view_updating_consumer(s, std::move(permit), *t, sstables, _as, staging_sstable_reader_handle));
|
||||
staging_sstable_reader.close().get();
|
||||
if (result == stop_iteration::yes) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user