diff --git a/sstables/metadata_collector.hh b/sstables/metadata_collector.hh index cc666c7774..265d81acf6 100644 --- a/sstables/metadata_collector.hh +++ b/sstables/metadata_collector.hh @@ -116,7 +116,7 @@ private: uint64_t _repaired_at = 0; int _max_local_deletion_time = std::numeric_limits::min(); double _compression_ratio = NO_COMPRESSION_RATIO; - // FIXME: add C++ version of protected Set ancestors = new HashSet<>(); + std::set _ancestors; streaming_histogram _estimated_tombstone_drop_time = default_tombstone_drop_time_histogram(); int _sstable_level = 0; std::vector _min_column_names; @@ -173,6 +173,10 @@ public: _repaired_at = repaired_at; } + void add_ancestor(int generation) { + _ancestors.insert(generation); + } + void sstable_level(int sstable_level) { _sstable_level = sstable_level; }