mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-08 16:03:20 +00:00
Before flat mutation readers sstable::read_row() returned a future<streamed_mutation>. That required a helper reader that would wait for the streamed_mutations from all relevant sstables to be created and then construct a mutation merger. With flat mutation readers sstable::read_row_flat() returns a flat_mutation_reader (no futures) so that the code can be simplified by collecting all the relevant readers and creating a combined reader without suspension points. The unfortunate disadvantage of the flat_mutation_reader-based approach is the fact that combined reader now needlessly compares the partition keys even though we know that we read only a single partition, but optimising that is out of scope of this patch.
199 KiB
199 KiB