db: view: get_tombstone_gc_state from compaction_manager
Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
@@ -1169,7 +1169,7 @@ void view_update_builder::generate_update(clustering_row&& update, std::optional
|
||||
}
|
||||
|
||||
auto dk = dht::decorate_key(*_schema, _key);
|
||||
auto gc_state = tombstone_gc_state(); // FIXME: for now
|
||||
const auto& gc_state = _base.get_compaction_manager().get_tombstone_gc_state();
|
||||
auto gc_before = gc_state.get_gc_before_for_key(_schema, dk, _now);
|
||||
|
||||
// We allow existing to be disengaged, which we treat the same as an empty row.
|
||||
|
||||
@@ -206,10 +206,7 @@ private:
|
||||
};
|
||||
|
||||
class view_update_builder {
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-private-field"
|
||||
const replica::table& _base;
|
||||
#pragma GCC diagnostic pop
|
||||
schema_ptr _schema; // The base schema
|
||||
std::vector<view_updates> _view_updates;
|
||||
flat_mutation_reader_v2 _updates;
|
||||
|
||||
Reference in New Issue
Block a user