sstables: extend metadata collector to add ancestors

Ancestors is a member of compaction metadata.

Signed-off-by: Raphael S. Carvalho <raphaelsc@cloudius-systems.com>
This commit is contained in:
Raphael S. Carvalho
2015-06-17 14:53:54 -03:00
parent efe1696410
commit 0d345dfd32

View File

@@ -116,7 +116,7 @@ private:
uint64_t _repaired_at = 0;
int _max_local_deletion_time = std::numeric_limits<int>::min();
double _compression_ratio = NO_COMPRESSION_RATIO;
// FIXME: add C++ version of protected Set<Integer> ancestors = new HashSet<>();
std::set<int> _ancestors;
streaming_histogram _estimated_tombstone_drop_time = default_tombstone_drop_time_histogram();
int _sstable_level = 0;
std::vector<bytes> _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;
}