diff --git a/flat_mutation_reader.cc b/flat_mutation_reader.cc index d6f7b37ba1..0b413860de 100644 --- a/flat_mutation_reader.cc +++ b/flat_mutation_reader.cc @@ -381,7 +381,10 @@ flat_mutation_reader make_nonforwardable(flat_mutation_reader r, bool single_par virtual future<> fill_buffer() override { return do_until([this] { return is_end_of_stream() || is_buffer_full(); }, [this] { return fill_buffer_from(_underlying).then([this] (bool underlying_finished) { - return on_end_of_underlying_stream(); + if (underlying_finished) { + return on_end_of_underlying_stream(); + } + return make_ready_future<>(); }); }); }