mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
partition_snapshot_reader: pop_range_tombstone returns reference
(instead of value) when possible.
This commit is contained in:
@@ -206,7 +206,10 @@ class partition_snapshot_flat_reader : public flat_mutation_reader::impl, public
|
||||
return !_clustering_rows.empty();
|
||||
}
|
||||
|
||||
range_tombstone peek_range_tombstone() const {
|
||||
// Let's not lose performance when not Reversing.
|
||||
using peeked_range_tombstone = std::conditional_t<Reversing, range_tombstone, const range_tombstone&>;
|
||||
|
||||
peeked_range_tombstone peek_range_tombstone() const {
|
||||
if constexpr (Reversing) {
|
||||
range_tombstone rt = std::prev(_range_tombstones.front().end())->tombstone();
|
||||
rt.reverse();
|
||||
|
||||
Reference in New Issue
Block a user