row_cache: Switch _prev_snapshot_pos to be a ring_position_ext
dht::ring_position cannot represent all ring_position_view instances, in particular those obtained from dht::ring_position_view::for_range_start(). To allow using the latter, switch to views.
This commit is contained in:
@@ -982,7 +982,7 @@ future<> row_cache::do_update(external_updater eu, memtable& m, Updater updater)
|
||||
_prev_snapshot_pos = {};
|
||||
} else {
|
||||
_update_section(_tracker.region(), [&] {
|
||||
_prev_snapshot_pos = dht::ring_position(m.partitions.begin()->key());
|
||||
_prev_snapshot_pos = m.partitions.begin()->key();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -377,7 +377,7 @@ private:
|
||||
mutation_source_opt _prev_snapshot;
|
||||
|
||||
// Positions >= than this are using _prev_snapshot, the rest is using _underlying.
|
||||
std::optional<dht::ring_position> _prev_snapshot_pos;
|
||||
std::optional<dht::ring_position_ext> _prev_snapshot_pos;
|
||||
|
||||
snapshot_source _snapshot_source;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user