mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
Instead of resetting _reader in scanning_and_populating_reader::fill_buffer in the `reader_finished` case, use a gentler, _read_next_partition flag on which `read_next_partition` will be called in the next iteration. Then, read_next_partition can close _reader only before overwriting it with a new reader. Otherwise, if _reader is always closed in the ``reader_finished` case, we end up hitting premature end_of_stream. Signed-off-by: Benny Halevy <bhalevy@scylladb.com> Message-Id: <20210215101254.480228-30-bhalevy@scylladb.com>
54 KiB
54 KiB