db: view: get_tombstone_gc_state from compaction_manager

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-09-06 19:59:13 +03:00
parent 71ede6124a
commit 6fb4b5555d
2 changed files with 1 additions and 4 deletions

View File

@@ -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.

View File

@@ -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;